Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK .NET / Dot isn't where it belongs ...

Author
Message
realHans
15
Years of Service
User Offline
Joined: 7th Mar 2009
Location:
Posted: 11th Mar 2009 09:39
Hi,
why isn't the dot made by DarkGDK.Basic2D.Drawing.Dot where it supposed to be ?

Thank you
realHans


Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 11th Mar 2009 20:13
It is where it is supposed to be. Where it is supposed to be just isn't what you were expecting...

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!
realHans
15
Years of Service
User Offline
Joined: 7th Mar 2009
Location:
Posted: 12th Mar 2009 00:36
OK, my question wasn't very smart. But maybe you can tell me why the Dot made by DarkGDK.Basic2D.Drawing.Dot(300, 50);
isn't in 300/50 ?

Thank you
realHans
APEXnow
Retired Moderator
21
Years of Service
User Offline
Joined: 15th Apr 2003
Location: On a park bench
Posted: 12th Mar 2009 14:00
That's a good question, I'll investigate and let you know.

Paul.

Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 12th Mar 2009 20:42 Edited at: 12th Mar 2009 20:46
Because you are using a GDK viewport with a client size which differs from the display resolution. If the display is 1024x768 and yet the viewport is only 512x384, then a dot drawn at 100,100 in DBPro coordinates will come out at 50,50 in screen coordinates.

Sorry for not being very helpful before, but this question has been asked literally a hundred or so times already

[b]Yuor signutare was aresed by a deslyxic mud...
BOX2D V2 HAS HELP FILES! AND A WIKI!

Login to post a reply

Server time is: 2024-11-21 10:40:40
Your offset time is: 2024-11-21 10:40:40