src/video/gem/SDL_gemvideo.c
branchSDL-1.2
changeset 5867 94e0116059f4
parent 5653 9a7d629b403a
child 6137 4720145f848b
equal deleted inserted replaced
5864:f31019514269 5867:94e0116059f4
   215 
   215 
   216 static void VDI_ReadExtInfo(_THIS, short *work_out)
   216 static void VDI_ReadExtInfo(_THIS, short *work_out)
   217 {
   217 {
   218 	unsigned long EdDI_version;
   218 	unsigned long EdDI_version;
   219 	long cookie_EdDI;
   219 	long cookie_EdDI;
   220 	Uint32 num_colours;
   220 	Uint16 clut_type;
   221 	Uint16 clut_type, num_bits;
       
   222 
   221 
   223 	/* Read EdDI informations */
   222 	/* Read EdDI informations */
   224 	if  (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
   223 	if  (Getcookie(C_EdDI, &cookie_EdDI) == C_NOTFOUND) {
   225 		return;
   224 		return;
   226 	}
   225 	}
   229 
   228 
   230 	vq_scrninfo(VDI_handle, work_out);
   229 	vq_scrninfo(VDI_handle, work_out);
   231 
   230 
   232 	VDI_format = work_out[0];
   231 	VDI_format = work_out[0];
   233 	clut_type = work_out[1];
   232 	clut_type = work_out[1];
   234 	num_bits = work_out[2];
       
   235 	num_colours = *((Uint32 *) &work_out[3]);
       
   236 
   233 
   237 	/* With EdDI>=1.1, we can have screen pitch, address and format
   234 	/* With EdDI>=1.1, we can have screen pitch, address and format
   238 	 * so we can directly write to screen without using vro_cpyfm
   235 	 * so we can directly write to screen without using vro_cpyfm
   239 	 */
   236 	 */
   240 	if (EdDI_version >= EDDI_11) {
   237 	if (EdDI_version >= EDDI_11) {