DearPyGui icon indicating copy to clipboard operation
DearPyGui copied to clipboard

DPI and screen resolution bugs on Win10

Open megazhuk opened this issue 3 years ago • 1 comments

Version of Dear PyGui

Version: 1.6.2. Operating System: Windows 10

1-st bug. When app start, first press to Alt+Enter app goes to fullscreen and stretched, on next Alt-Enter app return to it start-up size, but when i press Alt-Enter again, then app goes full-screen, but not stretched, plotted window still small.

2-nd bug. After installing DPG, and when i run my first DPG-app(built-in demo-app) for first time in my life, then it was started at normal GUI size for my screen DPI, "normal" means like any other apps (not DPG). But after Alt-Enter, when it goes fullscreen and next Alt-Enter, when it return in window mode, they goes too small, that they forgot about my screen DPI. And any other time it paints so tiny, like 72 dpi. Like on screenshot above.

To Reproduce

Steps to reproduce the behavior (BUG-1): I don't know how to reproduce 1-st bug, but now app started, like they think that my DPI is 72. All the drawing is too small.

Steps to reproduce the behavior (BUG-2):

  1. Run (demo-app)
  2. Press Alt-Enter to fullscreen
  3. See stretched window
  4. Press Alt-Enter to return to window-mode
  5. Press Alt-Enter to return to fullscreen
  6. See not-stretched painted window, just winApi window resized to fullscreen.

Expected behavior

Normal sized UI-elements, that know abut my screen DPI.

Screenshots/Video

image image image

import dearpygui.dearpygui as dpg
import dearpygui.demo as demo

dpg.create_context()
dpg.create_viewport(title='Custom Title', width=600, height=600)

demo.show_demo()

dpg.setup_dearpygui()
dpg.show_viewport()
dpg.start_dearpygui()
dpg.destroy_context()

megazhuk avatar May 20 '22 09:05 megazhuk

Do you know of any way to get the view back to normal? Even if I launch again it is tiny, also on Win10 and DPG 1.6.2

keck-in-space avatar May 23 '22 16:05 keck-in-space

We are addressing this. It's been around since the beginning.

hoffstadt avatar Oct 22 '22 03:10 hoffstadt