52 unsigned int support_state = 0;
56 if ((xres < 640) && (yres < 480))
61 if ((xres < 800) && (yres < 600))
66 if ((xres < 1024) && (yres < 768))
71 if ((xres < 1280) && (yres < 768))
76 if ((xres < 1280) && (yres < 1024))
81 if ((xres < 1400) && (yres < 1050))
86 if ((xres < 1600) && (yres < 1200))
91 if ((xres < 1366) && (yres < 768))
96 if ((xres < 1024) && (yres < 600))
101 if ((xres < 1280) && (yres < 800))
102 support_state =
true;
106 if ((xres < 800) && (yres < 480))
107 support_state =
true;
111 if ((xres < 1360) && (yres < 768))
112 support_state =
true;
116 if ((xres < 480) && (yres < 640))
117 support_state =
true;
121 support_state =
false;
125 return support_state;
135 int active_device_amount = 0;
139 if (device_status & 1)
140 active_device_amount++;
149 switch (
viaparinfo->chip_info->gfx_chip_name) {
170 for (i = 0; i < 256; i++) {
179 if ((active_device_amount > 1) &&
182 (
viaparinfo->chip_info->gfx_chip_revision < 15))) {
188 for (i = 0; i < 256; i++) {
199 unsigned char color_r, color_g, color_b;
200 unsigned char sr1a = 0;
204 switch (
viaparinfo->chip_info->gfx_chip_name) {
225 for (i = 0; i < 256; i++) {
230 ((((
u32) color_r) << 16) |
231 (((
u16) color_g) << 8)) | color_b;