Message board for the users of flat assembler.
> Windows > Direct2D how set sprite size to screen resolution ?
I use Win 7 Direct2D(without Directx SwapChain) for draw sprites\images. For draw my GUI.
My screen resolution 1680x1050
But if i draw in 1024x768 resolution my sprites\images draw behind the screen
How i think do:
myX = DeskResX/1680 myY = DeskResY/1050 SpriteX2DCoord = 1200 SpriteY2DCoord = 900 SpriteX2DCoord = SpriteX2DCoord*myX SpriteY2DCoord = SpriteY2DCoord*myY
How its correct ?
I will be glad to hear your opinion.
|24 Aug 2019, 09:58||
< Last Thread | Next Thread >
Copyright © 1999-2020, Tomasz Grysztar.
Powered by rwasa.