Center window when changing mode
This commit is contained in:
parent
f25d417794
commit
c0bf5e51c8
1 changed files with 1 additions and 0 deletions
|
@ -619,6 +619,7 @@ int CVideo::setMode( int x, int y, int bits_per_pixel, int flags )
|
|||
window->full_screen();
|
||||
} else {
|
||||
window->set_size(x, y);
|
||||
window->center();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue