Added wofi_get_window_scale()
This commit is contained in:
parent
61ef7b55b2
commit
bd9f49b963
@ -50,6 +50,8 @@ bool wofi_allow_markup(void);
|
|||||||
|
|
||||||
uint64_t wofi_get_image_size(void);
|
uint64_t wofi_get_image_size(void);
|
||||||
|
|
||||||
|
uint64_t wofi_get_window_scale(void);
|
||||||
|
|
||||||
bool wofi_mod_shift(void);
|
bool wofi_mod_shift(void);
|
||||||
|
|
||||||
bool wofi_mod_control(void);
|
bool wofi_mod_control(void);
|
||||||
|
@ -805,6 +805,10 @@ uint64_t wofi_get_image_size(void) {
|
|||||||
return image_size;
|
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) {
|
bool wofi_mod_shift(void) {
|
||||||
return mod_shift;
|
return mod_shift;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user