diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-14 20:48:16 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-06-14 20:48:16 +0200 |
commit | 8fb9efc08388d3a866cfdf911b07e372de24b556 (patch) | |
tree | 3afaf07e27fb37bd5a88b187d505137abdaa817b /src/kernel/vgatext.c | |
parent | 7a3b38c6462587657f20d684a833f0264de230b5 (diff) | |
download | abaos-8fb9efc08388d3a866cfdf911b07e372de24b556.tar.gz abaos-8fb9efc08388d3a866cfdf911b07e372de24b556.tar.bz2 |
got switch to graphical VGA mode working
Diffstat (limited to 'src/kernel/vgatext.c')
-rw-r--r-- | src/kernel/vgatext.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/kernel/vgatext.c b/src/kernel/vgatext.c index cbee587..76bfd46 100644 --- a/src/kernel/vgatext.c +++ b/src/kernel/vgatext.c @@ -147,7 +147,9 @@ static uint8_t calculate_color_cell( vga_text_t *vga_text ) static bool params_ok( vga_text_t *vga_text, const int x, const int y ) { - if( x > vga_text->res_x || y > vga_text->res_y ) return false; + if( x < 0 || x > vga_text->res_x || y < 0 || y > vga_text->res_y ) { + return false; + } return true; } |