diff src/video/xbios/SDL_xbios.c @ 4195:13de8ea401db SDL-1.2

Start Milan video support
author Patrice Mandin <patmandin@gmail.com>
date Sat, 19 Sep 2009 13:21:05 +0000
parents 05c9e942cc46
children 1bf6585720e9
line wrap: on
line diff
--- a/src/video/xbios/SDL_xbios.c	Sat Sep 19 12:46:00 2009 +0000
+++ b/src/video/xbios/SDL_xbios.c	Sat Sep 19 13:21:05 2009 +0000
@@ -50,6 +50,7 @@
 #include "SDL_xbios_centscreen.h"
 #include "SDL_xbios_sb3.h"
 #include "SDL_xbios_tveille.h"
+#include "SDL_xbios_milan.h"
 
 #define XBIOS_VID_DRIVER_NAME "xbios"
 
@@ -183,6 +184,8 @@
 				}
 			}
 			break;
+		case VDO_MILAN:
+			break;
 		default:
 			return 0;
 	}
@@ -488,6 +491,9 @@
 				}
 			}
 			break;
+		case VDO_MILAN:
+			SDL_XBIOS_ListMilanModes(this, 0);
+			break;
 	}
 
 	for ( i=0; i<NUM_MODELISTS; ++i ) {
@@ -552,6 +558,9 @@
 				}
 			}
 			break;
+		case VDO_MILAN:
+			SDL_XBIOS_ListMilanModes(this, 1);
+			break;
 	}
 
 	XBIOS_screens[0]=NULL;
@@ -694,7 +703,7 @@
 		XBIOS_screens[1]=(void *) (( (long) XBIOS_screensmem[1]+256) & 0xFFFFFF00UL);
 		modeflags |= SDL_DOUBLEBUF;
 	}
-	
+
 	/* Allocate the new pixel format for the screen */
 	if ( ! SDL_ReallocFormat(current, new_depth, 0, 0, 0, 0) ) {
 		XBIOS_FreeBuffers(this);