mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
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:
parent
c425ed626c
commit
a5abceccb2
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user