mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-02 12:49:13 +01:00
pch migration to modules [wip]
This commit is contained in:
17
widgets/imgui_scale.h
Normal file
17
widgets/imgui_scale.h
Normal file
@@ -0,0 +1,17 @@
|
||||
/*
|
||||
This Source Code Form is subject to the
|
||||
terms of the Mozilla Public License, v.
|
||||
2.0. If a copy of the MPL was not
|
||||
distributed with this file, You can
|
||||
obtain one at
|
||||
http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "imgui/imgui.h"
|
||||
|
||||
// ImVec2 scaled by the user's ui scale factor.
|
||||
// Global comes from utilities/Globals_macros.h and resolves at the expansion
|
||||
// site, so this header must not pull the settings module in itself.
|
||||
#define ImVec2S(a, b) ImVec2(a * Global.ui_scale, b * Global.ui_scale)
|
||||
Reference in New Issue
Block a user