summaryrefslogtreecommitdiff
path: root/Source/Kernel/DeviceManager
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-11-11 18:16:15 +0100
committerAlexis211 <alexis211@gmail.com>2009-11-11 18:16:15 +0100
commitb367cdbbc77f3b1b0f83a87219ea2c4d88ee78f1 (patch)
tree9ebc81bf6c25375da26c137be3f28ba83edddc8d /Source/Kernel/DeviceManager
parent7c5f4adcc8725efa0f0476e33732873a4167f54d (diff)
downloadMelon-b367cdbbc77f3b1b0f83a87219ea2c4d88ee78f1.tar.gz
Melon-b367cdbbc77f3b1b0f83a87219ea2c4d88ee78f1.zip
15bpp and 16bpp modes are now supported correctly
Diffstat (limited to 'Source/Kernel/DeviceManager')
-rw-r--r--Source/Kernel/DeviceManager/Disp.ns.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/Kernel/DeviceManager/Disp.ns.cpp b/Source/Kernel/DeviceManager/Disp.ns.cpp
index 2f1ebcd..146740d 100644
--- a/Source/Kernel/DeviceManager/Disp.ns.cpp
+++ b/Source/Kernel/DeviceManager/Disp.ns.cpp
@@ -41,6 +41,8 @@ void getModes() {
}
bool setMode(mode_t& newmode) {
+ mode.device->unsetMode();
+
if (newmode.device->setMode(newmode)) {
mode = newmode;
return true;