diff options
-rw-r--r-- | engines/sludge/backdrop.cpp | 4 | ||||
-rw-r--r-- | engines/sludge/backdrop.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/sludge/backdrop.cpp b/engines/sludge/backdrop.cpp index 3904cf5f86..dc46c410b1 100644 --- a/engines/sludge/backdrop.cpp +++ b/engines/sludge/backdrop.cpp @@ -735,7 +735,7 @@ bool loadParallax(unsigned short v, unsigned short fracX, unsigned short fracY) if (fracX == 65535) { nP->wrapS = false; - if (nP->width < winWidth) { + if (nP->surface.w < winWidth) { fatal("For AUTOFIT parallax backgrounds, the image must be at least as wide as the game window/screen."); return false; } @@ -745,7 +745,7 @@ bool loadParallax(unsigned short v, unsigned short fracX, unsigned short fracY) if (fracY == 65535) { nP->wrapT = false; - if (nP->height < winHeight) { + if (nP->surface.h < winHeight) { fatal("For AUTOFIT parallax backgrounds, the image must be at least as tall as the game window/screen."); return false; } diff --git a/engines/sludge/backdrop.h b/engines/sludge/backdrop.h index e614c4af2f..216b656678 100644 --- a/engines/sludge/backdrop.h +++ b/engines/sludge/backdrop.h @@ -40,7 +40,7 @@ extern int lightMapMode; struct parallaxLayer { Graphics::Surface surface; - int width, height, speedX, speedY; + int speedX, speedY; bool wrapS, wrapT; unsigned short fileNum, fractionX, fractionY; int cameraX, cameraY; |