by Dan East » Oct 30, 2001 @ 9:43am
Ideally it should use the g_dispProps struct at runtime to determine whether or not your code should be used for rendering. Note that I have implemented the GAPI code in such a way that no logic is performed during blitting to determine the RGB mapping or even the display orientation. Look for the comment [fixed]//Set the palette version function based on the GAPI properties for this device[/fixed], which is where you should set the pointer to your RGB conversion function. The VID_GetScreenBuf function is where all the rest of the orientation / screen size / color depth logic should be performed. Again, the goal is for the exact same VID_Update code to be used for all display types without requiring conditional statements.<br><br>Thanks for your contributions to PQ!!<br><br>Dan East