Does anyone know if it's common for this function to return #PB_PixelFormat_32Bits_RGB instead of BGR?
This code returns 7 (BGR) here:
Code: Select all
If InitSprite() = 0
MessageRequester("Error", "Can't open screen & sprite enviroment!", 0)
End
EndIf
OpenWindow(0, 0, 0, 512, 384, "", #PB_Window_SystemMenu | #PB_Window_ScreenCentered)
OpenWindowedScreen(WindowID(0), 0, 0, 512, 384, 0, 0, 0)
Repeat
Repeat
Event = WindowEvent()
Select Event
Case #PB_Event_CloseWindow
End
EndSelect
Until Event = 0
ClearScreen(RGB(0, 0, 0))
FlipBuffers()
StartDrawing(ScreenOutput())
Debug DrawingBufferPixelFormat()
StopDrawing()
End
Delay(10)
ForEver


