comparison src/video/xbios/SDL_xbios_centscreen.c @ 2188:0e751c1f83f5

Disable video extensions atm
author Patrice Mandin <patmandin@gmail.com>
date Fri, 13 Jul 2007 22:52:53 +0000
parents c121d94672cb
children 99210400e8b9
comparison
equal deleted inserted replaced
2187:0b24732b1134 2188:0e751c1f83f5
33 #include "SDL_xbios_centscreen.h" 33 #include "SDL_xbios_centscreen.h"
34 34
35 int 35 int
36 SDL_XBIOS_CentscreenInit(_THIS) 36 SDL_XBIOS_CentscreenInit(_THIS)
37 { 37 {
38 #if 0
38 centscreen_mode_t curmode, listedmode; 39 centscreen_mode_t curmode, listedmode;
39 unsigned long result; 40 unsigned long result;
40 int cur_handle; /* Current Centscreen mode handle */ 41 int cur_handle; /* Current Centscreen mode handle */
41 42
42 /* Reset current mode list */ 43 /* Reset current mode list */
73 } else { 74 } else {
74 fprintf(stderr, "No suitable Centscreen modes\n"); 75 fprintf(stderr, "No suitable Centscreen modes\n");
75 } 76 }
76 77
77 return cur_handle; 78 return cur_handle;
79 #else
80 return -1;
81 #endif
78 } 82 }
79 83
80 void 84 void
81 SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes) 85 SDL_XBIOS_CentscreenSetmode(_THIS, int width, int height, int planes)
82 { 86 {
87 #if 0
83 centscreen_mode_t newmode, curmode; 88 centscreen_mode_t newmode, curmode;
84 89
85 newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1; 90 newmode.handle = newmode.mode = newmode.logx = newmode.logy = -1;
86 newmode.physx = width; 91 newmode.physx = width;
87 newmode.physy = height; 92 newmode.physy = height;
90 95
91 /* Disable screensaver */ 96 /* Disable screensaver */
92 Vread(&newmode); 97 Vread(&newmode);
93 newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR); 98 newmode.mode &= ~(CSCREEN_SAVER | CSCREEN_ENERGYSTAR);
94 Vwrite(0, &newmode, &curmode); 99 Vwrite(0, &newmode, &curmode);
100 #endif
95 } 101 }
96 102
97 void 103 void
98 SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle) 104 SDL_XBIOS_CentscreenRestore(_THIS, int prev_handle)
99 { 105 {
106 #if 0
100 centscreen_mode_t newmode, curmode; 107 centscreen_mode_t newmode, curmode;
101 108
102 /* Restore old video mode */ 109 /* Restore old video mode */
103 newmode.handle = prev_handle; 110 newmode.handle = prev_handle;
104 newmode.mode = newmode.physx = newmode.physy = newmode.plan = 111 newmode.mode = newmode.physx = newmode.physy = newmode.plan =
105 newmode.logx = newmode.logy = -1; 112 newmode.logx = newmode.logy = -1;
106 Vwrite(0, &newmode, &curmode); 113 Vwrite(0, &newmode, &curmode);
114 #endif
107 } 115 }
108 116
109 /* vi: set ts=4 sw=4 expandtab: */ 117 /* vi: set ts=4 sw=4 expandtab: */