Fix warning from OSX compiler

The OSX compiler warns about uninitialized variable, so we change
a bit how size is initialized.
This commit is contained in:
Alexander Larsson 2010-09-29 12:36:39 +02:00
parent c425ed626c
commit a5abceccb2

View File

@ -647,13 +647,10 @@ RedScreen* Application::get_screen(int id)
if (!(screen = _screens[id])) {
Monitor* mon = find_monitor(id);
SpicePoint size;
SpicePoint size = {SCREEN_INIT_WIDTH, SCREEN_INIT_HEIGHT};
if (_full_screen && mon) {
size = mon->get_size();
} else {
size.x = SCREEN_INIT_WIDTH;
size.y = SCREEN_INIT_HEIGHT;
}
screen = _screens[id] = new RedScreen(*this, id, _title, size.x, size.y);
#ifdef USE_GUI