Skip to content

No texts in TuxMath and TuxType Arch Linux #14

@pedroprieto

Description

@pedroprieto

Hi,

TuxMath does not render texts in menus nor in game. It seems a problem with SDL.

I've submitted a fix to address it here:

I am no expert in SDL: the only thing I've done is return white_letters instead of bg in T4K_BlackOutline:

t4kcommon/src/t4k_sdl.c

Lines 1444 to 1454 in f36ec17

SDL_BlitSurface(white_letters, NULL, bg, &dstrect);
SDL_FreeSurface(white_letters);
/* --- Convert to the screen format for quicker blits --- */
SDL_SetColorKey(bg, SDL_SRCCOLORKEY|SDL_RLEACCEL, color_key);
out = SDL_DisplayFormatAlpha(bg);
SDL_FreeSurface(bg);
DEBUGMSG(debug_sdl, "\nLeaving T4K_BlackOutline(): \n");
return out;

Best!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions