diff options
author | Jinghua Luo <sunmoon1997@gmail.com> | 2007-02-04 22:46:08 +0800 |
---|---|---|
committer | Jinghua Luo <sunmoon1997@gmail.com> | 2007-02-04 22:46:08 +0800 |
commit | 51e3b6e271ad8c3b165764f1acee7d580334294e (patch) | |
tree | 93a6d83ce371e27e4be69933e2b57b21736fdbc9 | |
parent | 88212367e401c1949f57177f6bd437bf523947a2 (diff) |
opengl: fix for bitmap glyph.
-rw-r--r-- | src/sdl-freetype-opengl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sdl-freetype-opengl.c b/src/sdl-freetype-opengl.c index 4d7fde3..b3c9f56 100644 --- a/src/sdl-freetype-opengl.c +++ b/src/sdl-freetype-opengl.c @@ -155,7 +155,7 @@ sdl_freetype_opengl_glyph_user_data_init (sdl_freetype_font_t * font, unsigned char * src, * dst; int h; - pitch = (bitmap->width + 3) & ~3; + width = pitch = (bitmap->width + 3) & ~3; data = calloc (pitch * info->bitmap.rows, 1); if (!data) return SDL_FREETYPE_ERR_OUT_OF_MEMORY; |