mirror of https://github.com/ocornut/imgui
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
![]() We can divide platforms into two cases based on how they report screen geometry: - Case 1: Platforms which report screen size in "physical pixels": Windows (for "Dpi aware" apps), Linux (with Wayland) - Case 2: Platforms which report screen size in "density-independent pixels": macOS, iOS, Android, emscripten As a consequence, there are two important things we need to know: - FramebufferScale: The scaling factor FrameBufferSize / ScreenSize - In case 1, the framebuffer size is equal to the screen size and DisplayFramebufferScale=1. - In case 2, the framebuffer size is equal to the screen size multiplied by a factor, for example DisplayFramebufferScale=2. - ContentScale The scaling factor for the content that we will display - In case 1, the content scale will often need to be > 1 (e.g., 2), because we will need to display bigger elements so that they show with a correct physical size on the screen. - In case 2, the content scale is equal to 1 This commit fixes ContentScale for platforms in case 2. |
2 months ago | |
---|---|---|
.. | ||
sdlgpu3 | 8 months ago | |
vulkan | 8 months ago | |
imgui_impl_allegro5.cpp | 2 months ago | |
imgui_impl_allegro5.h | 3 months ago | |
imgui_impl_android.cpp | 6 months ago | |
imgui_impl_android.h | 6 months ago | |
imgui_impl_dx9.cpp | 3 months ago | |
imgui_impl_dx9.h | 3 months ago | |
imgui_impl_dx10.cpp | 3 months ago | |
imgui_impl_dx10.h | 3 months ago | |
imgui_impl_dx11.cpp | 3 months ago | |
imgui_impl_dx11.h | 3 months ago | |
imgui_impl_dx12.cpp | 3 months ago | |
imgui_impl_dx12.h | 3 months ago | |
imgui_impl_glfw.cpp | 2 months ago | |
imgui_impl_glfw.h | 3 months ago | |
imgui_impl_glut.cpp | 7 months ago | |
imgui_impl_glut.h | 9 months ago | |
imgui_impl_metal.h | 3 months ago | |
imgui_impl_metal.mm | 3 months ago | |
imgui_impl_opengl2.cpp | 3 months ago | |
imgui_impl_opengl2.h | 3 months ago | |
imgui_impl_opengl3.cpp | 3 months ago | |
imgui_impl_opengl3.h | 3 months ago | |
imgui_impl_opengl3_loader.h | 3 months ago | |
imgui_impl_osx.h | 3 months ago | |
imgui_impl_osx.mm | 3 months ago | |
imgui_impl_sdl2.cpp | 2 months ago | |
imgui_impl_sdl2.h | 3 months ago | |
imgui_impl_sdl3.cpp | 3 months ago | |
imgui_impl_sdl3.h | 6 months ago | |
imgui_impl_sdlgpu3.cpp | 3 months ago | |
imgui_impl_sdlgpu3.h | 3 months ago | |
imgui_impl_sdlgpu3_shaders.h | 8 months ago | |
imgui_impl_sdlrenderer2.cpp | 3 months ago | |
imgui_impl_sdlrenderer2.h | 3 months ago | |
imgui_impl_sdlrenderer3.cpp | 3 months ago | |
imgui_impl_sdlrenderer3.h | 3 months ago | |
imgui_impl_vulkan.cpp | 2 months ago | |
imgui_impl_vulkan.h | 3 months ago | |
imgui_impl_wgpu.cpp | 3 months ago | |
imgui_impl_wgpu.h | 3 months ago | |
imgui_impl_win32.cpp | 3 months ago | |
imgui_impl_win32.h | 6 months ago |