Fixed some bugs with font drawing and reverted the display list change - it was causing problems with multiple fonts

This commit is contained in:
Bill Meltsner
2010-08-28 11:42:37 -05:00
parent 9ba06d65f6
commit 046f2a3084
3 changed files with 7 additions and 11 deletions
+2 -2
View File
@@ -126,8 +126,8 @@ namespace font
int pw = next_p2(w);
int ph = next_p2(h);
unsigned char * d = new unsigned char[pw * ph * (format == GlyphData::FORMAT_LUMINOSITY_ALPHA ? 2 : 4)];
for (int i = 0; i < pw; i++) {
for (int j = 0; j < ph; j++) {
for (int j = 0; j < ph; j++) {
for (int i = 0; i < pw; i++) {
int n = i+j*w;
int p = i+j*pw;
if (i < w && j < h) {