Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Rendering on minus coordinates in linux  (Read 1108 times)

0 Members and 1 Guest are viewing this topic.

trilavia

  • Newbie
  • *
  • Posts: 28
    • View Profile
Rendering on minus coordinates in linux
« on: January 09, 2013, 02:13:51 pm »
I have a strange problem. After porting my game to linux and to newest SFML 2 snapshot, the strange bug appeard. When I draw textured sprite at for example (0, -5), it doesn't get drawn at all. On windows and sfml 2.0 rc, the sprite was drawn cutted at the top (which is what I need for smooth scrolling). Is there something different on linux/was something changed in sfml recently? Or it is a bug in my code and for you drawing on linux on minus coordinates works?

Nvm... It was caused because C++ is weird....

int a = 5
unsigned int b = 30;

a - b = 423121312313213213
 
So stupid, I need to cast unsigned to int every time I store something in unsigned (ie widget position).
« Last Edit: January 09, 2013, 02:21:31 pm by trilavia »

 

anything