jamesmintram Posted June 10, 2013 Share Posted June 10, 2013 Hi Everyone, Me again! I am having an issue with drawing images to the screen, it appears the coordinates gradually deviate the further away from the top left you try and draw things. I have a piece of code which does this: for ( int t = 0; t < winHeight + texHeight; t+=texHeight ) { context->SetTranslation(0, 0); context->SetScale(1, 1); context->SetRotation(0); context->DrawImage(m_BlockTex, 0, t); } winHeight is 768 and texHeight is 64 Therefore 12 images should be drawn and fit on the screen vertically. However, as you can see from the attached image this is not the case. Anyone know what might be going on? Regards, James Quote Link to comment Share on other sites More sharing options...
shadmar Posted June 10, 2013 Share Posted June 10, 2013 Window frame perhaps. Does look correctly in fullscreen? Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
xtreampb Posted June 10, 2013 Share Posted June 10, 2013 i would have to agree with shadmar. i've noticed in a few libraries that when measuring window height, that measurement also includes the status bar at the bottom of the window, and the window bar at the top of the window. this bar contains the programs name, and the minimize, maximize, and close buttons. i'm not sure if it also includes the few pixels on the sides of the windows (the resize frame). Quote bool Life() { while(death=false) { if(death==true) return death; } } I have found the secret to infinite life Did I help you out? Like my post! Link to comment Share on other sites More sharing options...
jamesmintram Posted June 11, 2013 Author Share Posted June 11, 2013 That does make sense. If that is the case, then I assume Leadwerks created a window 1024x768 INCLUSIVE of the Border/Titlebar? I will checkout what this looks like on a mac and on iOS tomorrow. Regards, James Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.