liballeg / allegro5

The official Allegro 5 git repository. Pull requests welcome!
https://liballeg.org
Other
1.85k stars 281 forks source link

something broken in al_lock_bitmap #1450

Open rmbeer opened 1 year ago

rmbeer commented 1 year ago

This's the source code with undefined behavior:

` /* This example displays a picture on the screen, with support for

It's based in ex_bitmap.c

jeffythedragonslayer commented 7 months ago

Hi! The formatting is broken up to double t1;

allefant commented 7 months ago
  • both are a size of 4 bytes x pixel

According to https://liballeg.org/a5docs/trunk/graphics.html#allegro_pixel_format one of them is 4 bytes and one is 3 bytes.