diff options
author | Alexis211 <alexis211@gmail.com> | 2009-11-11 18:16:15 +0100 |
---|---|---|
committer | Alexis211 <alexis211@gmail.com> | 2009-11-11 18:16:15 +0100 |
commit | b367cdbbc77f3b1b0f83a87219ea2c4d88ee78f1 (patch) | |
tree | 9ebc81bf6c25375da26c137be3f28ba83edddc8d /Source/Kernel/DeviceManager | |
parent | 7c5f4adcc8725efa0f0476e33732873a4167f54d (diff) | |
download | Melon-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.cpp | 2 |
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; |