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 / Windows mode and DarkGDK

Author
Message
scotts7777
14
Years of Service
User Offline
Joined: 14th Mar 2010
Location: Victoria, BC
Posted: 30th Mar 2010 19:28
Hi there,

I'm new to the forums and to C++ and DarkGDK in general. I am currently working through Tony Gaddis : Starting out with Games and Graphics in C++, on Chapter 6.

I frequently find that the code doesn't work as it should - always when doing graphics, drawing circles, printing text, plotting lines or dots etc.

After much screwing around, I find that going into fullscreen mode always fixes the problem. I just add :




to the top of the code which causes the program to run in fullscreen and not in a window. This fixes it every time.

But what if I want to run my code in a Window? Is this possible? Has anyone else experienced this same problem? I'm running Windows 7 64-bit with NVIDIA Geforce 9500M graphics cards.

Thanks
Scott
Marsh0
15
Years of Service
User Offline
Joined: 18th Mar 2009
Location:
Posted: 31st Mar 2010 08:32
All i could think of is that when you do that you have to redraw everything. Try adding a dbSync to the bottom of your loop. Or try just resizing the windowed screen in your code.

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
scotts7777
14
Years of Service
User Offline
Joined: 14th Mar 2010
Location: Victoria, BC
Posted: 5th Apr 2010 22:44
What function would you use to resize the windowed screen?

Thanks
AriEf
14
Years of Service
User Offline
Joined: 30th Nov 2009
Location: Indonesia
Posted: 5th Apr 2010 23:56
You can use this command :


Example :


P.S : Im Noob....

Im Indonesian, so I cant speak english

Login to post a reply

Server time is: 2024-10-02 03:27:56
Your offset time is: 2024-10-02 03:27:56