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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ppnl

Pages: [1]
1
Window / Re: Window behavior.
« on: January 26, 2023, 11:06:45 am »
What OS are you running on?

Thanks but I think I have it sorted. It is an old ugly about how full screen mode works. Turns out that  even deciding  how it should work is complicated. Being new to both object oriented programming and graphics programming made it a real rats nest.

2
Window / Re: [Mac] Fullscreen modes not scaled to screen size
« on: January 25, 2023, 03:04:22 pm »

As someone new to SFML and graphics generally my suggestion is that you make it clear what SFML is doing. I expect VideoMode to change the video mode. I expect Fullscreen to be, you know, full screen. I am ok with SFML supplying or not supplying whatever functionality you wish. I do resent the time I have wasted trying to understand why Fullscreen isn't full screen. The names of the functions and the documentation should show clearly what is happening.

Beyond that I would suggest that SFML ultimately allow people to do whatever they want even if it is ugly, OS dependent or unwise. Maybe by using #include <SFML/unwise.hpp>. That should be warning enough.

3
Window / Window behavior.
« on: January 24, 2023, 10:36:03 am »
What is the following code suppose to do?

#include <SFML/Graphics.hpp>
using namespace sf;

int main()
{
   VideoMode vm(1920, 1080);
   RenderWindow window(vm, "Test!!!", Style::Fullscreen);

   while(window.isOpen())
   {
      if(Keyboard::isKeyPressed(Keyboard::Escape))
      {
         window.close();
      }

      window.clear();
   }

   return 0;
}
 

My understanding is that it should open a full screen borderless window with a resolution of 1920 by 1080. Instead it opens a smaller borderless window in the upper left corner. It is probably 1920 by 1080 pixels but at the resolution of my desktop which is 3840 by 2160. Some open windows on my desk top are descaled as if they were on a 1920 by 1080 desktop when the program is run.

Is this expected behavior? How do you get a 1920 by 1080 full screen window to open? 

Pages: [1]
anything