Handle dpi awareness api feature flag
This commit is contained in:
1 parent
3ff483ad19
commit
3352152ef6
5 files changed
+27
-7
No files matched your search
+7
-2
@@ -126,7 +126,12 @@ fn open_url(l: &Lua, url: String) -> LuaResult<MultiValue> {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: handle "DPI_AWARE" flag
|
||||
fn render_init(_: &Lua, _features: Variadic<String>) -> LuaResult<()> {
|
||||
fn render_init(l: &Lua, features: Variadic<String>) -> LuaResult<()> {
|
||||
let socket = l.app_data_ref::<&'static ContextSocket>().unwrap();
|
||||
for feature in features {
|
||||
if feature == "DPI_AWARE" {
|
||||
*socket.is_dpi_aware() = true;
|
||||
}
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
Reference in new issue
Block a user