src/video/xbios/SDL_xbios.c
branchSDL-1.2
changeset 4195 13de8ea401db
parent 4194 05c9e942cc46
child 4197 1bf6585720e9
     1.1 --- a/src/video/xbios/SDL_xbios.c	Sat Sep 19 12:46:00 2009 +0000
     1.2 +++ b/src/video/xbios/SDL_xbios.c	Sat Sep 19 13:21:05 2009 +0000
     1.3 @@ -50,6 +50,7 @@
     1.4  #include "SDL_xbios_centscreen.h"
     1.5  #include "SDL_xbios_sb3.h"
     1.6  #include "SDL_xbios_tveille.h"
     1.7 +#include "SDL_xbios_milan.h"
     1.8  
     1.9  #define XBIOS_VID_DRIVER_NAME "xbios"
    1.10  
    1.11 @@ -183,6 +184,8 @@
    1.12  				}
    1.13  			}
    1.14  			break;
    1.15 +		case VDO_MILAN:
    1.16 +			break;
    1.17  		default:
    1.18  			return 0;
    1.19  	}
    1.20 @@ -488,6 +491,9 @@
    1.21  				}
    1.22  			}
    1.23  			break;
    1.24 +		case VDO_MILAN:
    1.25 +			SDL_XBIOS_ListMilanModes(this, 0);
    1.26 +			break;
    1.27  	}
    1.28  
    1.29  	for ( i=0; i<NUM_MODELISTS; ++i ) {
    1.30 @@ -552,6 +558,9 @@
    1.31  				}
    1.32  			}
    1.33  			break;
    1.34 +		case VDO_MILAN:
    1.35 +			SDL_XBIOS_ListMilanModes(this, 1);
    1.36 +			break;
    1.37  	}
    1.38  
    1.39  	XBIOS_screens[0]=NULL;
    1.40 @@ -694,7 +703,7 @@
    1.41  		XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL);
    1.42  		modeflags |= SDL_DOUBLEBUF;
    1.43  	}
    1.44 -	
    1.45 +
    1.46  	/* Allocate the new pixel format for the screen */
    1.47  	if ( ! SDL_ReallocFormat(current, new_depth, 0, 0, 0, 0) ) {
    1.48  		XBIOS_FreeBuffers(this);