comparison src/video/xbios/SDL_xbios_milan.c @ 4198:6405314a7c07 SDL-1.2

Define flags for double line and c2p operations. More Milan video work.
author Patrice Mandin <patmandin@gmail.com>
date Sun, 20 Sep 2009 12:08:51 +0000
parents 1bf6585720e9
children
comparison
equal deleted inserted replaced
4197:1bf6585720e9 4198:6405314a7c07
71 71
72 modeinfo.number = inf->devID; 72 modeinfo.number = inf->devID;
73 modeinfo.width = inf->scrWidth; 73 modeinfo.width = inf->scrWidth;
74 modeinfo.height = inf->scrHeight; 74 modeinfo.height = inf->scrHeight;
75 modeinfo.depth = inf->scrPlanes; 75 modeinfo.depth = inf->scrPlanes;
76 modeinfo.doubleline = SDL_FALSE; 76 modeinfo.flags = 0;
77 77
78 SDL_XBIOS_AddMode(enum_this, enum_actually_add, &modeinfo); 78 SDL_XBIOS_AddMode(enum_this, enum_actually_add, &modeinfo);
79 79
80 return ENUMMODE_CONT; 80 return ENUMMODE_CONT;
81 } 81 }
82 82
83 void SDL_XBIOS_ListMilanModes(_THIS, int actually_add) 83 void SDL_XBIOS_ListMilanModes(_THIS, int actually_add)
84 { 84 {
85 int i; 85 int i;
86
87 /* Read infos about current mode */
88 86
89 /* Read validated predefined modes */ 87 /* Read validated predefined modes */
90 for (i=0; i<NUM_PREDEFINED_MODES; i++) { 88 for (i=0; i<NUM_PREDEFINED_MODES; i++) {
91 int j; 89 int j;
92 Uint16 deviceid = 0x1000 + (i<<4); 90 Uint16 deviceid = 0x1000 + (i<<4);
97 95
98 modeinfo.number = deviceid + j; 96 modeinfo.number = deviceid + j;
99 modeinfo.width = mode_list[i].width; 97 modeinfo.width = mode_list[i].width;
100 modeinfo.height = mode_list[i].height; 98 modeinfo.height = mode_list[i].height;
101 modeinfo.depth = mode_bpp[j-1]; 99 modeinfo.depth = mode_bpp[j-1];
102 modeinfo.doubleline = SDL_FALSE; 100 modeinfo.flags = 0;
103 101
104 SDL_XBIOS_AddMode(this, actually_add, &modeinfo); 102 SDL_XBIOS_AddMode(this, actually_add, &modeinfo);
105 } 103 }
106 } 104 }
107 } 105 }