DPI aware lines?

Just starting out? Need help? Post your questions and find answers here.
User avatar
doctorized
Addict
Addict
Posts: 854
Joined: Fri Mar 27, 2009 9:41 am
Location: Athens, Greece

DPI aware lines?

Post by doctorized »

I am making my own menu using ButtonEx module from Thorsten1977. I have lines around the menu and lines as separators. My app is DPI aware in compiling options, I get DPI with
DPI.f = DesktopResolutionX()
I use LineXY() to create them. With 1.00 value everything is fine. With higher values I loose all my lines. I understand that when I have lines like
LineXY(0,0,0,318*DPI,$646464)
then with DPI 1.25 (125%) 318*DPI gives me 397.5 which causes the problem as in some cases it must be rounded up and some other cases down.
So, is there any way to bypass it?