SDL: Fix copying the screen to the overlay

- glReadPixels did not use the correct overlay height
- The copied image was flipped vertically
- Screen change ID was not updated, which prevented the theme engine
from detecting screen resolution changes
This commit is contained in:
Bastien Bouclet 2011-08-29 21:35:33 +02:00
parent 1c32722e59
commit bb0e833fa7
5 changed files with 34 additions and 2 deletions

View file

@ -72,6 +72,10 @@ byte *ModularBackend::setupScreen(int screenW, int screenH, bool fullscreen, boo
return _graphicsManager->setupScreen(screenW, screenH, fullscreen, accel3d);
}
int ModularBackend::getScreenChangeID() const {
return _graphicsManager->getScreenChangeID();
}
int16 ModularBackend::getHeight() {
return _graphicsManager->getHeight();
}