You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to display white text, I get light purple instead. And other tests are shown below.
{255, 255, 255, 128} ----> expecting white but got light purple
{255, 0, 0, 0} ----> red
{0, 255, 0, 0} ----> expecting green but got blue.
{0, 0, 255, 0} ----> expecting blue but got green.
Also, I tried adjusting the order of the four variables below, but it still failed.
uint64_t masks[4] = { fmt->Rmask, fmt->Gmask, fmt->Bmask, fmt->Amask };
The text was updated successfully, but these errors were encountered:
I want to overlay a text watermark onto a video using SDL_ttf, but failed. Below is my core code.
the function
upload_plane
is copy from demos\sdlimage.cWhen I try to display white text, I get light purple instead. And other tests are shown below.
{255, 255, 255, 128} ----> expecting white but got light purple
{255, 0, 0, 0} ----> red
{0, 255, 0, 0} ----> expecting green but got blue.
{0, 0, 255, 0} ----> expecting blue but got green.
Also, I tried adjusting the order of the four variables below, but it still failed.
uint64_t masks[4] = { fmt->Rmask, fmt->Gmask, fmt->Bmask, fmt->Amask };
The text was updated successfully, but these errors were encountered: