The Android surface overlays raylib's native CORE.Window record. Pruning unused fields for a single entry point could shrink it and misplace the size fields. A size assertion keeps its padding, and the test compiles a pruned entry against raylib's real layout.
9 lines
291 B
Ziran
9 lines
291 B
Ziran
#import, file "../src/backend/android_surface.zi";
|
|
|
|
// Entry pruning must retain the native CORE.Window prefix even though this
|
|
// application only accesses its size and framebuffer fields.
|
|
main :: () -> s32 {
|
|
width: s32; height: s32
|
|
return SyncAndroidSurfaceSize(*width, *height)
|
|
}
|