File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5757if TYPE_CHECKING :
5858 from genesis .vis .rasterizer_context import RasterizerContext
5959
60-
61- pyglet .options ["shadow_window" ] = False
62- pyglet .options ["dpi_scaling" ] = "real"
63-
64-
6560MODULE_DIR = os .path .dirname (__file__ )
6661
6762HELP_TEXT_KEY = Key .I
6863HELP_TEXT_KEYBIND_NAME = "toggle_instructions"
6964
7065
66+ pyglet .options ["shadow_window" ] = False
67+ if pyglet .options .get ("dpi_scaling" ) != "real" :
68+ pyglet .options ["dpi_scaling" ] = "real"
69+
70+
7171class Viewer (pyglet .window .Window ):
7272 """An interactive viewer for 3D scenes.
7373
Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ dependencies = [
2121 " moviepy>=2.0.0" ,
2222 # Used by `pyrender` to manage onscreen graphical windows
2323 # * 2.1.8 breaks headless windowing, which is used in unit tests of the interactive viewer.
24+ # * 2.0.15 <= 2.1.8 breaks old-style option overwrite for string literal.
25+ # * 2.1.10 changes default DPI scaling behavior.
2426 " pyglet>=1.5,!=2.1.8" ,
2527 # Used by `pyrender` to load fonts
2628 " freetype-py" ,
You can’t perform that action at this time.
0 commit comments