mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
Revert "gg: fix android compilation for ~/.vmodules/ui/examples/rectangles.v"
This reverts commit f1a855e6d2
.
This commit is contained in:
parent
f1a855e6d2
commit
f0ce7fb9d3
@ -1,5 +1,6 @@
|
||||
module gg
|
||||
|
||||
import os
|
||||
import sokol.sapp
|
||||
|
||||
#include <android/configuration.h>
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user