From f9d0a90ac958052ea9750692e43b8e2096a72de6 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 4 Sep 2018 23:50:50 +0200 Subject: [PATCH] some fixes --- basegraph.cpp | 5 ++++- rogueviz.cpp | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/basegraph.cpp b/basegraph.cpp index e8fdb970..bb349394 100644 --- a/basegraph.cpp +++ b/basegraph.cpp @@ -402,6 +402,10 @@ void init_glfont(int size) { SDL_Color white; white.r = white.g = white.b = 255; #endif + +#if CAP_TABFONT + resetTabFont(); +#endif // glListBase(0); @@ -436,7 +440,6 @@ void init_glfont(int size) { glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR); glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR); - printf("for size %d, texture height is %d\n", size, cury + theight); theight = next_p2(cury + theight); glTexImage2D( GL_TEXTURE_2D, 0, GL_RGBA, FONTTEXTURESIZE, theight, 0, diff --git a/rogueviz.cpp b/rogueviz.cpp index e03588a7..d5023d42 100644 --- a/rogueviz.cpp +++ b/rogueviz.cpp @@ -1126,7 +1126,9 @@ bool drawVertex(const transmatrix &V, cell *c, shmup::monster *m) { } if(hilite || hiliteclick) alpha = (alpha + 256) / 2; - if(svg::in && alpha < 16) continue; + if((svg::in || ISWEB) && alpha < 16) continue; + + if(ISWEB) alpha |= 15; transmatrix gm1 = multidraw ? V * memo_relative_matrix(vd1.m->base, c) :