From f915dbf8a1554fc1ee7092defafe02b13c5d50e4 Mon Sep 17 00:00:00 2001 From: mcmartin Date: Sat, 8 Mar 2003 16:48:50 +0000 Subject: [PATCH] Fixed completely idiotic buffer check error. Oops. git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@873 8092fc87-c524-0410-9efc-e669fe64eaf9 --- sc2/src/sc2code/libs/graphics/sdl/canvas.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sc2/src/sc2code/libs/graphics/sdl/canvas.c b/sc2/src/sc2code/libs/graphics/sdl/canvas.c index 3e7d4cae3..ddc5474f1 100644 --- a/sc2/src/sc2code/libs/graphics/sdl/canvas.c +++ b/sc2/src/sc2code/libs/graphics/sdl/canvas.c @@ -1,4 +1,4 @@ -#include "SDL.h" +s over#include "SDL.h" #include "sdl_common.h" #include "libs/graphics/gfx_common.h" #include "libs/graphics/sdl/primitives.h" @@ -299,7 +299,7 @@ TFB_DrawCanvas_Rescale (TFB_Canvas src_canvas, TFB_Canvas dest_canvas, EXTENT si */ csx = 0; csax = sax; - for (x = 0; x <= dst->w; x++) { + for (x = 0; x <= size.width; x++) { *csax = csx >> 16; csax++; csx &= 0xffff; @@ -307,7 +307,7 @@ TFB_DrawCanvas_Rescale (TFB_Canvas src_canvas, TFB_Canvas dest_canvas, EXTENT si } csy = 0; csay = say; - for (y = 0; y <= dst->h; y++) { + for (y = 0; y <= size.height; y++) { *csay = csy >> 16; csay++; csy &= 0xffff;