aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2016-02-05 08:29:56 -0500
committerClyne Sullivan <tullivan99@gmail.com>2016-02-05 08:29:56 -0500
commitb18d9c1b0fa305f82ddd0633e969a1a38869db6d (patch)
tree8096f4a112f633ed2d4d1ee67c475d97d7648823 /src/ui.cpp
parent814dab606cfeeabd4aeecba852507c3c3f1a005f (diff)
font improvements
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 937367c..56a88a3 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -227,8 +227,8 @@ namespace ui {
buf[j*4 ]=fontColor[0];
buf[j*4+1]=fontColor[1];
buf[j*4+2]=fontColor[2];
- //buf[j*4+3]=ftf->glyph->bitmap.buffer[j] == 255 ? 255 : 0;
- buf[j*4+3]=ftf->glyph->bitmap.buffer[j];
+ buf[j*4+3]=ftf->glyph->bitmap.buffer[j] ? 255 : 0;
+ //buf[j*4+3]=ftf->glyph->bitmap.buffer[j];
}
ftexwh[i-33].x=ftf->glyph->bitmap.width;
@@ -537,7 +537,7 @@ namespace ui {
dialogBoxExists = true;
dialogImportant = true;
- toggleBlack();
+ //toggleBlack();
}
void draw(void){
unsigned char i;
@@ -976,7 +976,7 @@ namespace ui {
fwrite(&bgr, 1,3*SCREEN_WIDTH*SCREEN_HEIGHT,bmp);
delete[] pixels;
-
+
fclose(bmp);
}
@@ -1000,8 +1000,10 @@ DONE:
if(dialogImportant){
dialogImportant = false;
setFontSize(16);
- toggleBlack();
+ //toggleBlack();
}
+ /*if(ui::fontSize != 16)
+ setFontSize(16);*/
dialogBoxExists = false;
}