Message board for the users of flat assembler.
> Windows > Direct2D how set sprite size to screen resolution ?
Roman 24 Aug 2019, 09:58
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-2023, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.