# HG changeset patch # User Matti Hamalainen # Date 1556534810 -10800 # Node ID 1edf494226c67ee697fc83e1a182ff024cda86cd # Parent 78a9140f02b1a119d01a16eba100aab30e7819b8 Copy surface attributes in dmGetBMGlyph(). diff -r 78a9140f02b1 -r 1edf494226c6 src/dmtext.h --- a/src/dmtext.h Wed Apr 03 20:59:36 2019 +0300 +++ b/src/dmtext.h Mon Apr 29 13:46:50 2019 +0300 @@ -82,6 +82,8 @@ if (ch < 0 || ch >= font->nglyphs || ch == '\n' || ch == '\r') ch = 32; + memcpy(surf, font->glyphs, sizeof(SDL_Surface)); + glyph = &font->glyphMap[ch]; surf->w = glyph->width; surf->h = glyph->height;