Home » Extra libraries, Code snippets, applications etc. » OS Problems etc., Win32, POSIX, MacOS, FreeBSD, X11 etc » some drawing problems in X11
some drawing problems in X11 [message #6998] |
Wed, 06 December 2006 23:16  |
evert
Messages: 6 Registered: December 2006 Location: The Netherlands
|
Promising Member |
|
|
Hi,
I have created a small ataxx (virus) game in U++ as part of my programming course at the university. The code is ugly, I'm a beginner, the comments are in Dutch, but it works, at least in Win32. In X11 I have to disable a few things like auto-resizing the window.
Some code snippets that causes problems:
w.DrawEllipse(startx, starty, virusgrootte/2, virusgrootte/2, Yellow());
(it seems like DrawEllipse does not like the divisions - Win32 does not complain though)
centrumpunt = GetWorkArea().CenterPoint();
centreerx = centrumpunt.x-(int)(.5*raambreedte);
centreery = centrumpunt.y-(int)(.5*raamhoogte);
SetRect(centreerx, centreery, raambreedte, raamhoogte);
(something goes wrong with GetWorkArea().CenterPoint(); or with SetRect, not sure which is causing the problem)
I'm working with upp_0.612.1-1_i386.deb
(in windows, i work with the 605 release, works splendid)
Just to let you know there errors ocurred. I've to show my work tomorrow so I will not care much myself about these problems - I just show the win32 version and my teacher will be happy.
Thanks for U++ !!
|
|
|
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Wed May 14 14:16:00 CEST 2025
Total time taken to generate the page: 0.01223 seconds
|