diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-24 15:50:33 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-24 15:50:33 +0200 |
commit | e6a749b7c0bec98df1f6d64371b2847ad71c2f10 (patch) | |
tree | d03fa228398d341c2efff51d8ec1c31f32b9c4b1 /src/drivers/video/vga.c | |
parent | 3294c81695aedef0b59610fe4e0f0cd22f74d67c (diff) | |
download | abaos-e6a749b7c0bec98df1f6d64371b2847ad71c2f10.tar.gz abaos-e6a749b7c0bec98df1f6d64371b2847ad71c2f10.tar.bz2 |
made VGA graphical font smaller (we only want ASCII for now)
some performance improvements in VGA graphics mode
Diffstat (limited to 'src/drivers/video/vga.c')
-rw-r--r-- | src/drivers/video/vga.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/drivers/video/vga.c b/src/drivers/video/vga.c index e30fd19..b245aad 100644 --- a/src/drivers/video/vga.c +++ b/src/drivers/video/vga.c @@ -336,19 +336,8 @@ void vga_draw_rectangle( vga_t *vga, const int x, const int y, const int w, cons for( int yy = y; yy < y + h; yy++ ) { uint8_t *addr = vga->mode.segment + vga->mode.x * yy + x; - for( int xx = x; xx < x + w; xx++ ) { - *addr = color_idx; - addr++; - } - } - - /* very slow, but educative version - for( int yy = y; yy < y + h; yy++ ) { - for( int xx = x; xx < x + w; xx++ ) { - vga_set_pixel( vga, xx, yy, color ); - } + memset( addr, color_idx, w ); } - */ } void vga_clear_screen( vga_t *vga, const vga_color_t color ) |