Skip to content

Commit

Permalink
Merge branch 'master' into docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom committed Jan 8, 2024
2 parents 8fb3247 + 6be6c81 commit 9fbe58d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/hello_imgui/dpi_aware.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,15 @@ namespace HelloImGui
/**
@@md#DocEmToVec2
Special care must be taken in order to correctly handle screen with high DPI (for example, almost all recent laptops screens).
Special care must be taken in order to correctly handle screen with high DPI
(for example, almost all recent laptops screens).
Using ImVec2 with fixed values is *almost always a bad idea* if you intend your application to be used on high DPI screens!
Otherwise, widgets might be misplaced or too small on different screens and/or OSes.
Using ImVec2 with fixed values is *almost always a bad idea* if you intend your
application to be used on high DPI screens!
Otherwise, widgets might be misplaced or too small on different screens and/or OSes.
Instead you should use scale your widgets and windows relatively to the font size, as is done
with the [em CSS Unit](https://lyty.dev/css/css-unit.html).
Instead you should use scale your widgets and windows relatively to the font size,
as is done with the [em CSS Unit](https://lyty.dev/css/css-unit.html).
@@md
**/
Expand Down

0 comments on commit 9fbe58d

Please sign in to comment.