diff options
author | Christian Cunningham <cc@localhost> | 2022-02-28 23:05:31 -0700 |
---|---|---|
committer | Christian Cunningham <cc@localhost> | 2022-02-28 23:05:31 -0700 |
commit | 2088e98a9def43b169038d51aa4f808e8dbe5365 (patch) | |
tree | 8bd7dfdfc6e4fcc838ccc5452b747d2b7455ffe9 /src/graphics/lfb.c | |
parent | 9169796632fcdeb5e8e74ed60c6cbe31081e51f2 (diff) |
Remove old drawer routines
Diffstat (limited to 'src/graphics/lfb.c')
-rw-r--r-- | src/graphics/lfb.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |