mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-30 21:00:39 +00:00
make use of the new get_overlay_height/get_overlay_width
svn-id: r10327
This commit is contained in:
parent
b75626d1ce
commit
7d95a33922
@ -224,15 +224,18 @@ void NewGui::runLoop() {
|
||||
#pragma mark -
|
||||
|
||||
void NewGui::saveState() {
|
||||
int sys_height = _system->get_height();
|
||||
int sys_width = _system->get_width();
|
||||
|
||||
// Backup old cursor
|
||||
_oldCursorMode = _system->show_mouse(true);
|
||||
|
||||
// Enable the overlay
|
||||
_system->show_overlay();
|
||||
// TODO - add getHeight & getWidth methods to OSystem.
|
||||
_screen = (NewGuiColor*)calloc(sys_width*sys_height,sizeof(NewGuiColor));
|
||||
|
||||
// Create a screen buffer for the overlay data, and fill it with
|
||||
// whatever is visible on the screen rught now.
|
||||
int sys_height = _system->get_overlay_height();
|
||||
int sys_width = _system->get_overlay_width();
|
||||
_screen = (NewGuiColor*)calloc(sys_width * sys_height, sizeof(NewGuiColor));
|
||||
_screenPitch = sys_width;
|
||||
_system->grab_overlay(_screen, _screenPitch);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user