aboutsummaryrefslogtreecommitdiff
path: root/drivers/gfx.c
diff options
context:
space:
mode:
authorFranklin Wei <frankhwei536@gmail.com>2015-03-01 13:05:04 -0500
committerFranklin Wei <frankhwei536@gmail.com>2015-03-01 13:05:04 -0500
commit6e86a3abee2d9b2c03452cd62997c2152a3332aa (patch)
treeef868a5a58b59fb0fbc215a4dd4367d5fcb4125e /drivers/gfx.c
parentd532ad93a42ea95460765d4527b3fb1e4544c154 (diff)
downloadkappa-6e86a3abee2d9b2c03452cd62997c2152a3332aa.zip
kappa-6e86a3abee2d9b2c03452cd62997c2152a3332aa.tar.gz
kappa-6e86a3abee2d9b2c03452cd62997c2152a3332aa.tar.bz2
kappa-6e86a3abee2d9b2c03452cd62997c2152a3332aa.tar.xz
lots of stuff
Diffstat (limited to 'drivers/gfx.c')
-rw-r--r--drivers/gfx.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/drivers/gfx.c b/drivers/gfx.c
index 3417fda..2f4864b 100644
--- a/drivers/gfx.c
+++ b/drivers/gfx.c
@@ -6,6 +6,7 @@
#include "gfx_font.h"
#include "log.h"
#include "multiboot.h"
+#include "paging.h"
#include "panic.h"
#include "gfx.h"
@@ -178,16 +179,8 @@ void gfx_putchar(int ch)
else if(ch == '\b')
{
int temp_x = cursor_x - FONT_WIDTH;
- if(temp_x < 0)
- {
- cursor_x = 0;
- int temp_y = cursor_y - FONT_HEIGHT;
- cursor_y = (temp_y < 0) ? 0 : temp_y;
- }
- else
- {
+ if(temp_x >= 0)
cursor_x = temp_x;
- }
gfx_drawchar_bg(cursor_x, cursor_y, ' ');
}
}