Added cb.o to the UDI objects list
[tpg/acess2.git] / Modules / BochsGA / bochsvbe.c
index a833503..5fe82f5 100644 (file)
@@ -5,7 +5,7 @@
  * \warning This driver does NOT support the Bochs PCI VGA driver\r
 */\r
 #define DEBUG  0\r
-#include <common.h>\r
+#include <acess.h>\r
 #include <errno.h>\r
 #include <modules.h>\r
 #include <vfs.h>\r
@@ -13,7 +13,6 @@
 #include <drv_pci.h>\r
 #include <tpl_drv_video.h>\r
 \r
-//#define INT  static\r
 #define INT\r
 \r
 // === TYPEDEFS ===\r
@@ -250,12 +249,11 @@ INT int BGA_Ioctl(tVFS_Node *node, int ID, void *Data)
                ret = 0;\r
                break;\r
                \r
-       case VIDEO_IOCTL_SETMODE:\r
-               ret = BGA_int_UpdateMode(*(int*)(Data));\r
-               break;\r
-               \r
-       case VIDEO_IOCTL_GETMODE:\r
-               ret = giBGA_CurrentMode;\r
+       case VIDEO_IOCTL_GETSETMODE:\r
+               if( Data )\r
+                       ret = BGA_int_UpdateMode(*(int*)(Data));\r
+               else\r
+                       ret = giBGA_CurrentMode;\r
                break;\r
        \r
        case VIDEO_IOCTL_FINDMODE:\r

UCC git Repository :: git.ucc.asn.au