summaryrefslogtreecommitdiff
path: root/Source/Kernel/Devices
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-12-19 14:57:50 +0100
committerAlexis211 <alexis211@gmail.com>2009-12-19 14:57:50 +0100
commit07f030f2a2147598236c5fd361a7caaba7d00b23 (patch)
tree4d944e3a6711a80fb8887c2d4c5c6a5c7267819c /Source/Kernel/Devices
parentb079ac88df4c2580310e44fda6a2a4ac5f0f840f (diff)
downloadMelon-07f030f2a2147598236c5fd361a7caaba7d00b23.tar.gz
Melon-07f030f2a2147598236c5fd361a7caaba7d00b23.zip
Minor changes
Diffstat (limited to 'Source/Kernel/Devices')
-rw-r--r--Source/Kernel/Devices/Display/VESADisplay.class.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Kernel/Devices/Display/VESADisplay.class.cpp b/Source/Kernel/Devices/Display/VESADisplay.class.cpp
index d4aee07..7c4adca 100644
--- a/Source/Kernel/Devices/Display/VESADisplay.class.cpp
+++ b/Source/Kernel/Devices/Display/VESADisplay.class.cpp
@@ -208,7 +208,7 @@ void VESADisplay::putPix(u16int x, u16int y, u32int c) {
u32int VESADisplay::getPix(u16int x, u16int y) {
if (x >= m_currMode.Xres or y >= m_currMode.Yres) return 0;
- u32int ret;
+ u32int ret = 0;
union {
u8int* c;
u16int* w;
@@ -258,6 +258,7 @@ void VESADisplay::drawChar(u16int line, u16int col, WChar c, u8int color) {
p[2] = (bgcolor);
p += 3;
}
+ p -= (9 * 3);
}
p += m_currMode.pitch;
}