From 66f2d3dee835aece4ffe5a87d5188c911ab7c686 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Thu, 5 Apr 2007 23:44:51 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@929 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 27 ++++++++++++++------------- source/src/protos.h | 2 +- source/src/renderhud.cpp | 12 ++++++++++-- 3 files changed, 25 insertions(+), 16 deletions(-) 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(); }