From 2088e98a9def43b169038d51aa4f808e8dbe5365 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Mon, 28 Feb 2022 23:05:31 -0700 Subject: Remove old drawer routines --- src/graphics/lfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/graphics/lfb.c') diff --git a/src/graphics/lfb.c b/src/graphics/lfb.c index ee31514..8f7ad06 100644 --- a/src/graphics/lfb.c +++ b/src/graphics/lfb.c @@ -116,12 +116,12 @@ void draw_cpixel(unsigned long lx, unsigned long ly, unsigned int c) *((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; } -void draw_cbox(unsigned long lx, unsigned long ly, unsigned char dx, unsigned char dy, unsigned int c) +void draw_cbox(unsigned long lx, unsigned long ly, unsigned int dx, unsigned int dy, unsigned int c) { unsigned char* ptr = lfb; ptr += (gpitch*ly+lx*4); - for(int y = 0; y < dy; y++) { - for(int x = 0; x < dx; x++) { + for(unsigned int y = 0; y < dy; y++) { + for(unsigned int x = 0; x < dx; x++) { *((unsigned int*)ptr) = gisrgb ? (unsigned int)((c&0xFF)<<16 | (c&0xFF00) | (c&0xFF0000)>>16) : c; ptr += 4; } -- cgit v1.2.1