diff options
| author | jacksonmj <mj-pt@jacksonmj.co.uk> | 2011-10-03 18:34:30 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-10-06 20:59:41 (GMT) |
| commit | 4abefaf1ec4e2545b87516340c4ab21b12d7f3ff (patch) | |
| tree | d71ce3f542e293a12492b9b8c3147c27aa7839e4 /src/graphics.c | |
| parent | ae3241ec80a252e86b8504304a3e03188d57022f (diff) | |
| download | powder-4abefaf1ec4e2545b87516340c4ab21b12d7f3ff.zip powder-4abefaf1ec4e2545b87516340c4ab21b12d7f3ff.tar.gz | |
tpt.drawline
Diffstat (limited to 'src/graphics.c')
| -rw-r--r-- | src/graphics.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphics.c b/src/graphics.c index 837dc42..eec5946 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1379,7 +1379,7 @@ inline void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a) #endif { #ifdef OpenGL - if (x<0 || y<0 || x>=XRES || r>=YRES) + if (x<0 || y<0 || x>=XRES+BARSIZE || r>=YRES+MENUSIZE) return; if (a!=255) { @@ -1390,7 +1390,7 @@ inline void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a) vid[y*(XRES+BARSIZE)+x] = PIXRGB(r,g,b); #else pixel t; - if (x<0 || y<0 || x>=XRES || y>=YRES) + if (x<0 || y<0 || x>=XRES+BARSIZE || y>=YRES+MENUSIZE) return; if (a!=255) { |
