Files
RetroArch/samples/gfx/android_content_rect/extract.awk
LibretroAdmin 7ff2befb44 android: the content rectangle's size is one word
onContentRectChanged() publishes the size as one VIDEO_SCALE_PACK
word, so the Vulkan context never pairs one change's width with
another's height, and check_window() takes the changed flag with an
exchange, so a change raised while it reads is not cleared unseen.
The context keeps its own size as one word too.

samples/gfx/android_content_rect runs both shipping functions on the
host, taken out of their files at build time, with the UI thread's
change delivered in every gap between the reader's operations.
2026-09-23 16:16:01 +02:00

19 lines
585 B
Awk

# Prints the named static functions (FUNCS, comma-separated) from the
# source it is given, whole: from the line that opens the definition to
# the closing brace in column zero.
BEGIN { n = split(FUNCS, want, ","); for (i = 1; i <= n; i++) need[want[i]] = 1 }
{ sub(/\r$/, "") }
!in_fn && /^static / {
for (f in need)
if (index($0, " " f "(")) { in_fn = 1; found[f] = 1 }
}
in_fn { print; if ($0 ~ /^}/) { in_fn = 0; print "" } }
END {
for (f in need)
if (!(f in found))
{
print "extract.awk: " f " not found" > "/dev/stderr"
exit 1
}
}