diff --git a/source/src/main.cpp b/source/src/main.cpp index 18315afe..a7cc57b2 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -167,8 +167,8 @@ int main(int argc, char **argv) int fs = SDL_FULLSCREEN, depth = 0, bpp = 0, fsaa = 0, par = 0, uprate = 0, maxcl = DEFAULTCLIENTS; char *sdesc = "", *ip = "", *master = NULL, *passwd = "", *maprot = NULL, *masterpwd = NULL; - #define log(s) puts("init: " s) - log("sdl"); + #define initlog(s) puts("init: " s) + initlog("sdl"); for(int i = 1; iid, (VIRTW-VIRTH)/2, 0, VIRTH, 0, 0, 1); + if(fmt) + { + glEnable(GL_BLEND); + s_sprintfdlv(str, fmt, fmt); + int w = text_width(str); + draw_text(str, w>=VIRTW ? 0 : (VIRTW-w)/2, VIRTH*3/4); + glDisable(GL_BLEND); + } SDL_GL_SwapBuffers(); }