mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 09:49:14 +00:00
SLUDGE: Clear screen before every display
This commit is contained in:
parent
0f93962ef4
commit
7da077b93a
@ -144,6 +144,11 @@ void GraphicsManager::display() {
|
||||
g_system->updateScreen();
|
||||
}
|
||||
|
||||
void GraphicsManager::clear() {
|
||||
_renderSurface.fillRect(Common::Rect(0, 0, _backdropSurface.w, _backdropSurface.h),
|
||||
_renderSurface.format.RGBToColor(0, 0, 0));
|
||||
}
|
||||
|
||||
bool GraphicsManager::loadParallax(uint16 v, uint16 fracX, uint16 fracY) {
|
||||
if (!_parallaxStuff)
|
||||
_parallaxStuff = new Parallax;
|
||||
|
@ -61,6 +61,7 @@ public:
|
||||
void setWindowSize(uint winWidth, uint winHeight) { _winWidth = winWidth; _winHeight = winHeight; }
|
||||
bool init();
|
||||
void display();
|
||||
void clear();
|
||||
|
||||
// Parallax
|
||||
bool loadParallax(uint16 v, uint16 fracX, uint16 fracY);
|
||||
|
@ -267,7 +267,8 @@ bool initSludge(const Common::String &filename) {
|
||||
}
|
||||
|
||||
void displayBase() {
|
||||
g_sludge->_gfxMan->drawBackDrop();// Draw the room
|
||||
g_sludge->_gfxMan->clear(); // Clear screen
|
||||
g_sludge->_gfxMan->drawBackDrop();// Draw Backdrop
|
||||
g_sludge->_gfxMan->drawZBuffer(g_sludge->_gfxMan->getCamX(), g_sludge->_gfxMan->getCamY(), false);
|
||||
drawPeople();// Then add any moving characters...
|
||||
g_sludge->_gfxMan->displaySpriteLayers();
|
||||
|
Loading…
x
Reference in New Issue
Block a user