aboutsummaryrefslogtreecommitdiffstats
path: root/examples/pugl_cpp_demo.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2025-01-22 18:42:11 -0500
committerDavid Robillard <d@drobilla.net>2025-01-22 18:42:11 -0500
commit1dce4defe62b5e0ed70460b52c444dc51a701e18 (patch)
treee5e7d7b7a1a32f766f68e393a8a8e1e362a97f3e /examples/pugl_cpp_demo.cpp
parent90b9b63b2001c4595c08f7da5aa4403611327678 (diff)
downloadpugl-1dce4defe62b5e0ed70460b52c444dc51a701e18.tar.gz
pugl-1dce4defe62b5e0ed70460b52c444dc51a701e18.tar.bz2
pugl-1dce4defe62b5e0ed70460b52c444dc51a701e18.zip
Make puglSetSizeHint() consistent with puglSetSize()
In general, it's more convenient to have full-width integers as parameters, since C will promote any arithmetic on smaller types to them anyway. Using narrow types here, then, doesn't really make anything stricter, just forces an annoying cast when lots of warnings are enabled, which is likely unchecked. Better to handle it here, since it's more convenient, and the integer range checks the compiler can do aren't correct anyway (the max width/height is intentionally smaller than the max PuglSpan, so it can fit in a signed 16-bit integer).
Diffstat (limited to 'examples/pugl_cpp_demo.cpp')
0 files changed, 0 insertions, 0 deletions