Added checking for FXMESA_USE_ARGB to disable pixel reformatting when not appropriate
This commit is contained in:
@@ -799,6 +799,7 @@ BOOL GLAPIENTRY wglSwapBuffers(HDC hdc)
|
|||||||
* display. Obviously, it's performance hit will be higher on larger displays and
|
* display. Obviously, it's performance hit will be higher on larger displays and
|
||||||
* less on smaller displays. To support the window-hack display this is probably fine.
|
* less on smaller displays. To support the window-hack display this is probably fine.
|
||||||
*/
|
*/
|
||||||
|
#if FXMESA_USE_ARGB
|
||||||
{
|
{
|
||||||
unsigned long *pixel = dibSurfacePtr;
|
unsigned long *pixel = dibSurfacePtr;
|
||||||
unsigned long count = (width * height) / 2;
|
unsigned long count = (width * height) / 2;
|
||||||
@@ -811,6 +812,7 @@ BOOL GLAPIENTRY wglSwapBuffers(HDC hdc)
|
|||||||
;
|
;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
BitBlt(hdcScreen, 0, 0,
|
BitBlt(hdcScreen, 0, 0,
|
||||||
width, height,
|
width, height,
|
||||||
|
Reference in New Issue
Block a user