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

Author Topic: Screwy bounds (even for basic examples)  (Read 1461 times)

0 Members and 3 Guests are viewing this topic.

snakeBiscuits

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Screwy bounds (even for basic examples)
« on: September 04, 2017, 03:24:21 pm »
Hi guys.

Appreciate some help diagnosing this problem. Have this little problem. This is just an example, I am getting it across the board.

Same results with x86/x64 and debug/release no matter what combo. At first I thought it might be an issue with display scaling somehow, but no.

This one is from the SFML And Visual Studio tutorial page. Image: https://ibb.co/hTssbv

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Screwy bounds (even for basic examples)
« Reply #1 on: September 04, 2017, 06:23:40 pm »
Can you provide a description of the problem?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

snakeBiscuits

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Screwy bounds (even for basic examples)
« Reply #2 on: September 04, 2017, 07:33:53 pm »
It's more a visual thing, hence the link to the picture.

Even running the basic "SFML Works!!!" example shows that the circle is not in the bounds of the RenderWindow. Given the dimensions of the window and the circle, it should all fit.

Anyway, having further looked at the problem, it appears to occur on my laptop, but not my desktop, so it looks like it is not SFML's fault at all.

The question then becomes, what on earth is causing it.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Screwy bounds (even for basic examples)
« Reply #3 on: September 04, 2017, 07:35:07 pm »
What DPI scaling are you using?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

snakeBiscuits

  • Newbie
  • *
  • Posts: 3
    • View Profile
    • Email
Re: Screwy bounds (even for basic examples)
« Reply #4 on: September 04, 2017, 08:07:33 pm »
Tried it on 100 and 150, both with a full reboot.

Null sweat, chummer. Given that it's local to my laptop, it's not something I expect any serious technical support on. Especially given that no one else seems to have the issue (Being on the https://www.sfml-dev.org/tutorials/2.4/start-vc.php page would give that code frag a lot of use).

Cheers anyway.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11002
    • View Profile
    • development blog
    • Email
Re: Screwy bounds (even for basic examples)
« Reply #5 on: September 04, 2017, 10:42:59 pm »
Check your graphics card scaling.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything