From f0ce7fb9d3aff239d9ca3c7971497cc18dd606ec Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Wed, 6 Jul 2022 16:19:40 +0300 Subject: [PATCH] Revert "gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v" This reverts commit f1a855e6d224f0c13ba633ebb75e3b4e1f7d83e5. --- vlib/gg/gg_android_outside_termux.c.v | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vlib/gg/gg_android_outside_termux.c.v b/vlib/gg/gg_android_outside_termux.c.v index ddfbdf0e52..41e5ba26ad 100644 --- a/vlib/gg/gg_android_outside_termux.c.v +++ b/vlib/gg/gg_android_outside_termux.c.v @@ -1,5 +1,6 @@ module gg +import os import sokol.sapp #include @@ -12,7 +13,7 @@ fn C.AConfiguration_delete(voidptr) // android_dpi_scale returns the scale factor of the device. pub fn android_dpi_scale() f32 { config := C.AConfiguration_new() - activity := &C.ANativeActivity(sapp.android_get_native_activity()) + activity := &os.NativeActivity(sapp.android_get_native_activity()) C.AConfiguration_fromAssetManager(config, activity.assetManager) density := C.AConfiguration_getDensity(config) C.AConfiguration_delete(config)