Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit ccfe044

Browse files
committed
Turn off cache miss visualization
1 parent 80dc4a3 commit ccfe044

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed

source/book.cpp

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,11 @@ u8 Book::Open() {
182182
fclose(fp);
183183
Restore();
184184
} else {
185-
if(format == FORMAT_XHTML) {
186-
app->PrintStatus("opening XHTML...\n");
187-
err = Parse(true);
188-
}
189-
else if(format == FORMAT_EPUB) {
190-
app->PrintStatus("opening EPUB...\n");
191-
std::string path;
192-
path.append(GetFolderName());
193-
path.append("/");
194-
path.append(GetFileName());
195-
err = epub(this,path,false);
196-
} else
197-
err = 255;
185+
std::string path;
186+
path.append(GetFolderName());
187+
path.append("/");
188+
path.append(GetFileName());
189+
err = epub(this,path,false);
198190
if (app->cache) Cache();
199191
fclose(fp);
200192
}

source/text.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,9 @@ void Text::PrintChar(u32 ucs, FT_Face face) {
644644
if (!a) continue;
645645
if (!invert) a = 256 - a;
646646
u16 pixel = RGB15(a>>3,a>>3,a>>3)|BIT(15);
647-
if(!hit) pixel = RGB15(a>>3,0,0) | BIT(15);
647+
#ifdef DRAW_CACHE_MISSES
648+
// if(!hit) pixel = RGB15(a>>3,0,0) | BIT(15);
649+
#endif
648650
u16 sx = (pen.x+gx+bx);
649651
u16 sy = (pen.y+gy-by);
650652
screen[sy*display.height+sx] = pixel;
@@ -720,7 +722,7 @@ void Text::PrintSplash(u16 *screen)
720722

721723
SetScreen(screen);
722724
drawstack(screen);
723-
SetPen(display.width-44, display.height-40);
725+
SetPen(display.width-44, display.height-200);
724726
PrintString(VERSION);
725727

726728
// pop

0 commit comments

Comments
 (0)