From 160c4f910404dcfaad86b5ad238391c75a2d5182 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 22 Jun 2003 14:59:21 +0000 Subject: Fixed the last (?) glitches around the mouse cursor [*] in aspect-ratio correction mode by making sure that dirty rects always start on a line that won't have its colours changed by the stretching function. This was probably only noticeable when using the 1x scaler. [*] Actually, the glitches weren't specific to the mouse cursor, but it was useful for triggering them. svn-id: r8621 --- backends/sdl/sdl-common.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backends') diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp index cd3b99430c..63e949fede 100644 --- a/backends/sdl/sdl-common.cpp +++ b/backends/sdl/sdl-common.cpp @@ -286,6 +286,9 @@ void OSystem_SDL_Common::add_dirty_rect(int x, int y, int w, int h) { if (h > _screenHeight - y) { h = _screenHeight - y; } + + if (_adjustAspectRatio) + makeRectStretchable(x, y, w, h); r->x = x; r->y = y; -- cgit v1.2.3