1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-19 09:30:31 +00:00

added CAP_EXTFONT for when font textures are not available (i.e., mobile devices)

This commit is contained in:
Zeno Rogue
2021-05-29 12:16:32 +02:00
parent 334bf12292
commit 3f7fc5f2b9
3 changed files with 9 additions and 1 deletions

View File

@@ -1229,6 +1229,7 @@ EX namespace dice {
queuecurve(V1, 0xFFFFFFFF, color & 0xFFFFFF9F, PPR::WALL);
#if !CAP_EXTFONT
pointfunction pf = [&] (ld x, ld y) {
hyperpoint hs;
dynamicval<eGeometry> g(geometry, gSpace534);
@@ -1242,6 +1243,7 @@ EX namespace dice {
else if(fid == 9) s = "9.";
else s = its(fid);
write_in_space(V1, max_glfont_size, dw->faces < 10 ? -1.2 : -.75, s, 0xFFFFFFFF, 0, 8, PPR::WALL, pf);
#endif
}
}