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

Author Topic: Window right and left sides  (Read 1235 times)

0 Members and 1 Guest are viewing this topic.

MrMou6

  • Newbie
  • *
  • Posts: 17
    • View Profile
Window right and left sides
« on: February 24, 2015, 03:37:36 pm »
Hi, i draw two rectangles:
padas1.setPosition(sf::Vector2f(10, (waukstis/2)-25));
padas2.setPosition(sf::Vector2f(wilgis-10, (waukstis / 2) - 25));
and i get this:

why these spaces is different?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Window right and left sides
« Reply #1 on: February 24, 2015, 03:51:52 pm »
Second one should be wilgis - 10 - width. Don't forget that by default, the position refers to the top-left corner.
Laurent Gomila - SFML developer

 

anything