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

Author Topic: Fullscreen-Errors with sf::RenderTexture/sf::RenderWindow ?  (Read 2453 times)

0 Members and 1 Guest are viewing this topic.

NaCl

  • Newbie
  • *
  • Posts: 18
    • View Profile
Hi!
I wonder why, but if I create a sf::RenderWindow(sf::VideoMode::getFullscreenModes()[0], "blabla", sf::Style::Fullscreen) together with a sf::Rendertexture, I get a 800 by 600 resolution, not a 1600 by 900 resolution. (sf::VideoMode::getFullScreenModules()[0] width: 1600 height: 900)
No scaling! I have no idea why it is 800x600 and not 1600x900... I mean, I have the Hardware to use such a sf::VideoMode! ._.
Some Information:
Code: [Select]
General Information :
Manufacturer : NVIDIA Co
Version : 4.3.0
Renderer : GeForce GT 44
Shading Language : 4.30
Acceleration : Yes, Hard

Texture Information :
Maximum Texture Size : 1
Maximum Texture Size Cub
Maximum Texture Size 3D
Draw Buffers : 8

Supported Resolutions:  http://pastebin.com/cyurwYXn

Thanks for help,
Salt

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11036
    • View Profile
    • development blog
    • Email
AW: Fullscreen-Errors with sf::RenderTexture/sf::RenderWindow ?
« Reply #1 on: June 23, 2013, 07:58:52 am »
How do you know it's the small resolution?
Can you provide a complete and minimal example?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

NaCl

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Fullscreen-Errors with sf::RenderTexture/sf::RenderWindow ?
« Reply #2 on: June 23, 2013, 11:54:35 am »
Well lets say I create a sf::RectangleShape on the position 400|300.
Then its right in the middle of the screen. On (800|300) it isnt visible anymore. So yeah...
Ive had a long Debug-Session.  :-\

Salt

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Fullscreen-Errors with sf::RenderTexture/sf::RenderWindow ?
« Reply #3 on: June 23, 2013, 12:58:21 pm »
Quote
Can you provide a complete and minimal example?
Please ;)
Laurent Gomila - SFML developer

NaCl

  • Newbie
  • *
  • Posts: 18
    • View Profile
Re: Fullscreen-Errors with sf::RenderTexture/sf::RenderWindow ?
« Reply #4 on: June 23, 2013, 05:51:55 pm »
I solved it.
There was just a wrong operator in my code, which was hard to localize. Thanks anyways! :)

Salt
« Last Edit: June 23, 2013, 06:01:35 pm by NaCl »