Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
evert is currently offline  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++ !!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: freebsd fluxbox theide
Next Topic: Why glibc-2.4 and not glibc-2.3 is needed for U++ on Linux?
Goto Forum:
  


Current Time: Fri Mar 29 01:02:42 CET 2024

Total time taken to generate the page: 0.01360 seconds