From 49ba3f196f706472344a9a10105dad349bf1a0e0 Mon Sep 17 00:00:00 2001 From: Felix Wallin Date: Fri, 3 Sep 2010 14:55:31 +0200 Subject: [PATCH] added various things --- graphics.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/graphics.c b/graphics.c index a6f83f3dc..ce5e89371 100644 --- a/graphics.c +++ b/graphics.c @@ -884,7 +884,7 @@ void fillrect(pixel *vid, int x, int y, int w, int h, int r, int g, int b, int a for(j=1; j=XRES || y>=YRES) return; @@ -969,6 +979,7 @@ inline void blendpixel(pixel *vid, int x, int y, int r, int g, int b, int a) b = (a*b + (255-a)*PIXB(t)) >> 8; } vid[y*(XRES+BARSIZE)+x] = PIXRGB(r,g,b); +#endif //OpenGL } void draw_icon(pixel *vid_buf, int x, int y, char ch, int flag) @@ -2352,4 +2363,4 @@ void ClearScreen() { glClear(GL_COLOR_BUFFER_BIT); } -#endif \ No newline at end of file +#endif