Added wofi_get_window_scale()

This commit is contained in:
Scoopta 2020-05-18 23:22:05 -07:00
parent 61ef7b55b2
commit bd9f49b963
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,8 @@ bool wofi_allow_markup(void);
uint64_t wofi_get_image_size(void);
uint64_t wofi_get_window_scale(void);
bool wofi_mod_shift(void);
bool wofi_mod_control(void);

View File

@ -805,6 +805,10 @@ uint64_t wofi_get_image_size(void) {
return image_size;
}
uint64_t wofi_get_window_scale(void) {
return gdk_window_get_scale_factor(gtk_widget_get_window(window));
}
bool wofi_mod_shift(void) {
return mod_shift;
}