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

Author Topic: Compiled newest RC, texture subrectangles glitched.  (Read 1069 times)

0 Members and 1 Guest are viewing this topic.

DC

  • Newbie
  • *
  • Posts: 5
    • View Profile
Compiled newest RC, texture subrectangles glitched.
« 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.



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?

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Compiled newest RC, texture subrectangles glitched.
« Reply #1 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'.
« Last Edit: December 28, 2012, 06:23:01 pm by FRex »
Back to C++ gamedev with SFML in May 2023

DC

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Compiled newest RC, texture subrectangles glitched.
« Reply #2 on: December 28, 2012, 08:10:16 pm »
Ah, thank you. I'll have to go back and fix that!