diff options
Diffstat (limited to 'engines/teenagent/objects.h')
-rw-r--r-- | engines/teenagent/objects.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/teenagent/objects.h b/engines/teenagent/objects.h index fe423a9d75..a0211dee83 100644 --- a/engines/teenagent/objects.h +++ b/engines/teenagent/objects.h @@ -48,7 +48,7 @@ struct Rect { } inline bool valid() const { - return left >= 0 && left < 320 && right >= 0 && right < 320 && top >= 0 && top < 200 && bottom >= 0 && bottom < 200; + return left >= 0 && left < screenWidth && right >= 0 && right < screenWidth && top >= 0 && top < screenHeight && bottom >= 0 && bottom < screenHeight; } void render(Graphics::Surface *surface, uint8 color) const; |