Category : screen-resolution

I am trying to resize my window app according to the resolution. My computer resolution as we can see in the screenshot is 3840 x 2160 with a 300% scaling. With this code: from win32api import GetSystemMetrics import win32con print("Width =", GetSystemMetrics(win32con.SM_CXVIRTUALSCREEN)) print("Height =", GetSystemMetrics(win32con.SM_CYVIRTUALSCREEN)) I get : Width = 1280 Height = 720 Because ..

Read more

I just got the new and slick Lenovo ThinkPad T15g, with the fancy NVIDIA® GeForce® RTX™ 2080 Super with Max-Q 8GB. Machine’s native LCD panel is a UHD (3840×2160). Windows 10 Pro 64bit. Latest drivers for everything, including nVidia. There is also an internal Intel UHD display adapter, powering the laptop’s own monitor. T15g replaces ..

Read more

>>> import pygame pygame 2.0.0 (SDL 2.0.12, python 3.8.5) Hello from the pygame community. https://www.pygame.org/contribute.html >>> pygame.display.list_modes() Traceback (most recent call last): File "<stdin>", line 1, in <module> pygame.error: video system not initialized I want to get a list of all possible screen resolutions my windows system can support. I searched a lot of things ..

Read more

I have this method to get my screen’s width and height: void getScreenResolution(int &width, int &height){ width=GetSystemMetrics(SM_CXSCREEN); height=GetSystemMetrics(SM_CYSCREEN); } which gives screen size of 1280 X 720. However my monitor is 1920 X 1080. The analogy of width/height is correct but when I try to take a screenshot only a part of the screen of ..

Read more