aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien de Graffenried <seb.degraff@gmail.com>2025-08-06 02:07:03 +0200
committerSebastien de Graffenried <seb.degraff@gmail.com>2025-08-06 02:07:03 +0200
commitc9bd33fc239c8f3db2da7ba20cab291454dff097 (patch)
tree11015591b5b273ee381f7ffa681e0b297425f0e8
parentadc5b04a0ec620d218900cd4374f3a7014672f73 (diff)
fix
-rw-r--r--sokol_app.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 58f27df5..724ee6fa 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -5633,7 +5633,7 @@ sapp_range _sapp_bitmap_from_image_desc(sapp_image_desc* desc) {
write_int32(0); // reserved
write_int32(bmp_header_size+dib_header_size); // offset to pixel data
SOKOL_ASSERT((size_t)(bmp_write - bmp_header_start) == bmp_header_size);
- SOKOL_UNUSED(bmp_header_start);
+ _SOKOL_UNUSED(bmp_header_start);
// DIB Header
uint8_t* dib_header_start = bmp_write;
write_int32(dib_header_size); // header size
@@ -5654,14 +5654,14 @@ sapp_range _sapp_bitmap_from_image_desc(sapp_image_desc* desc) {
write_int32('sRGB'); // color space type 'Win ' 'sRGB' or 0 for RGB
bmp_write += 64; // color space stuff, unused for 'Win ' or 'sRGB'
SOKOL_ASSERT((size_t)(bmp_write - dib_header_start) == dib_header_size);
- SOKOL_UNUSED(dib_header_start);
+ _SOKOL_UNUSED(dib_header_start);
#undef write_byte
#undef write_int16
#undef write_int32
// copy the pixel data row by row (bmp is bottom to top)
ptrdiff_t remain = (bmp_data + bmp_size) - bmp_write;
SOKOL_ASSERT(remain == (int) desc->pixels.size);
- SOKOL_UNUSED(remain);
+ _SOKOL_UNUSED(remain);
size_t row_size = (size_t)desc->width * 4;
for (int y = 0; y < desc->height; y++) {
memcpy(bmp_write + (size_t)(desc->height - y - 1) * row_size, (uint8_t*)desc->pixels.ptr + (size_t)y * row_size, row_size);