1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ci: fix some of v test-cleancode 2

This commit is contained in:
Delyan Angelov
2021-04-05 20:55:03 +03:00
parent fec89c7efb
commit c0e2b9b1e2
5 changed files with 8 additions and 8 deletions

View File

@@ -19,10 +19,10 @@ pub:
callbacks voidptr // Pointer to the callback function table of the native application. (struct ANativeActivityCallbacks *)
clazz voidptr // The NativeActivity object handle.
env voidptr // JNI context for the main thread of the app.
externalDataPath charptr // Path to this application's external (removable/mountable) data directory.
externalDataPath &char // Path to this application's external (removable/mountable) data directory.
instance voidptr // This is the native instance of the application.
internalDataPath charptr // Path to this application's internal data directory.
obbPath charptr // Available starting with Honeycomb: path to the directory containing the application's OBB files (if any).
internalDataPath &char // Path to this application's internal data directory.
obbPath &char // Available starting with Honeycomb: path to the directory containing the application's OBB files (if any).
sdkVersion int // The platform's SDK version code.
vm voidptr // The global handle on the process's Java VM
}

View File

@@ -119,7 +119,7 @@ fn create_image(file string) Image {
return img
}
pub fn (mut ctx Context) create_image_from_memory(buf byteptr, bufsize int) Image {
pub fn (mut ctx Context) create_image_from_memory(buf &byte, bufsize int) Image {
stb_img := stbi.load_from_memory(buf, bufsize) or { return Image{} }
mut img := Image{
width: stb_img.width