Skip to content

Commit

Permalink
Fix crash when DPI < 100 (fix scrollbar dpi adjustment)
Browse files Browse the repository at this point in the history
  • Loading branch information
piernov committed May 22, 2022
1 parent 57196b8 commit 59eb80a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openboardview/main_opengl.cpp
Expand Up @@ -301,7 +301,7 @@ int main(int argc, char **argv) {

{
ImGuiStyle &style = ImGui::GetStyle();
style.ScrollbarSize *= app.dpi / 100;
style.ScrollbarSize *= app.dpi / 100.0f;
}

// Font selection
Expand Down

0 comments on commit 59eb80a

Please sign in to comment.