Skip to content

Commit

Permalink
Make sure the bitmap for the initial icon is created as a memory bitmap.
Browse files Browse the repository at this point in the history
Fixes #1571
  • Loading branch information
SiegeLordEx authored and SiegeLord committed Aug 11, 2024
1 parent 7485248 commit 793d2af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/x/xdisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,9 @@ static bool xdpy_create_display_hook_default(ALLEGRO_DISPLAY *display,
} else {
ALLEGRO_STATE state;
al_store_state(&state, ALLEGRO_STATE_NEW_BITMAP_PARAMETERS);
al_set_new_bitmap_flags(ALLEGRO_MEMORY_BITMAP);
ALLEGRO_BITMAP *bitmap = al_create_bitmap(ICON_WIDTH, ICON_HEIGHT);
al_restore_state(&state);

ALLEGRO_LOCKED_REGION *lr = al_lock_bitmap(bitmap, ALLEGRO_PIXEL_FORMAT_RGBA_8888, ALLEGRO_LOCK_WRITEONLY);
for (int y = 0; y < ICON_HEIGHT; y++) {
Expand Down

0 comments on commit 793d2af

Please sign in to comment.