diff options
author | David Robillard <d@drobilla.net> | 2025-01-22 18:42:11 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-01-22 18:42:11 -0500 |
commit | 1dce4defe62b5e0ed70460b52c444dc51a701e18 (patch) | |
tree | e5e7d7b7a1a32f766f68e393a8a8e1e362a97f3e /examples/pugl_cpp_demo.cpp | |
parent | 90b9b63b2001c4595c08f7da5aa4403611327678 (diff) | |
download | pugl-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