SFML community forums

Help => General => Topic started by: DC on December 28, 2012, 06:16:32 pm

Title: Compiled newest RC, texture subrectangles glitched.
Post by: DC on December 28, 2012, 06:16:32 pm
Hello again, I finally got my program that I was working on to run by compiling the latest version of SFML manually (and also converting my code from version 1.6 to 2.0), and it almost worked, except for one thing: all of my subrectangles are messed up, even though I didn't change any of them in the conversion.

(http://i.imgur.com/41A4o.png)

I'm on Windows 8 64-bit and using CodeBlocks with MinGW by the way. Is there anything I can do about this? Is it a problem with my PC, or is it a known bug in the latest snapshot?
Title: Re: Compiled newest RC, texture subrectangles glitched.
Post by: FRex on December 28, 2012, 06:21:30 pm
Quote
(and also converting my code from version 1.6 to 2.0), and it almost worked, except for one thing: all of my subrectangles are messed up, even though I didn't change any of them in the conversion.
http://en.sfml-dev.org/forums/index.php?topic=5343.msg35054#msg35054
Quote
sf::Rect stores (left, top, width, height) instead of (left, top, right, bottom)
There is more than meets the eye... or 'more than meets the api incompatibility'.
Title: Re: Compiled newest RC, texture subrectangles glitched.
Post by: DC on December 28, 2012, 08:10:16 pm
Ah, thank you. I'll have to go back and fix that!