Re: [Tuxpaint-devel] Prompt drop-shadows in SDL2
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2022-09-05 07:07:54
|
On Sat, Sep 03, 2022 at 02:03:29AM +0200, Pere Pujal i Carabantes wrote: <snip> > Sorry, I thouth you spoke about the increasing shadows(from the button to the dialog) > Indeed I dont see the final shadow next to the dialog. Now that my weekend-long headache has ended, I was able to sit down and figure out how to fix it. :) https://sourceforge.net/p/tuxpaint/tuxpaint/ci/270f5353e09b8a8938e497b8f5667a044b622f10/ Basically, for each it looked like - SDL_FillRect(alpha_surf, NULL, SDL_MapRGB(alpha_surf->format, 0, 0, 0)); - SDL_SetSurfaceAlphaMod(alpha_surf, 64); - + SDL_FillRect(alpha_surf, NULL, SDL_MapRGBA(alpha_surf->format, 0, 0, 0, 64)); -- -bill! Sent from my computer |