1
General / Re: Game window is smaller in my laptop...
« on: August 27, 2019, 04:53:15 pm »
How do I scale the entire window from the program?
But then I have mouse events that wait for the user to click on certain sprites. If I just scale the window, the mouse event coordinates won't change right. So the program won't work as expected and even when the player clicks the sprites, the program won't register it.
I guess I just have to multiply each mouse event by how much I scale the window?
(edit: oh or I can just divide the sf::event of a mouse click by how much I scaled the window?)
After scaling the window, would the size of the window change only to the operating system but also to the program?
Thanks for replying
But then I have mouse events that wait for the user to click on certain sprites. If I just scale the window, the mouse event coordinates won't change right. So the program won't work as expected and even when the player clicks the sprites, the program won't register it.
I guess I just have to multiply each mouse event by how much I scale the window?
(edit: oh or I can just divide the sf::event of a mouse click by how much I scaled the window?)
After scaling the window, would the size of the window change only to the operating system but also to the program?
Thanks for replying