Il m'est impossible de créer ou de charger des sprites si le paramètre ScreenDepth est de 16 bits !
Code : Tout sélectionner
#ScreenWidth = 800
#ScreenHeight = 600
ExamineDesktops()
ScreenDepth = DesktopDepth(0)
Debug ScreenDepth
Debug InitSprite()
Debug OpenScreen(#ScreenWidth,#ScreenHeight,ScreenDepth,"Test")
Debug CreateSprite(0,10,10)
; result > 0 si #ScreenDepth = 32
; result = 0 si #ScreenDepth = 16
End
; PureBasic 5.11 Beta 1
; Eeepc 1001HA 2Go i945GME
; Win xp sp3