From a6c7974a132a60e698a482850e279e069113b794 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Tue, 4 Mar 2003 23:57:25 +0000 Subject: [PATCH] misc fixes svn path=/trunk/boinc/; revision=1011 --- api/graphics_api.h | 1 + api/reduce.cpp | 6 +++--- api/windows_opengl.cpp | 3 ++- client/client_types.C | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/api/graphics_api.h b/api/graphics_api.h index 027ebd357c..e9317154ed 100755 --- a/api/graphics_api.h +++ b/api/graphics_api.h @@ -4,6 +4,7 @@ #define MODE_WINDOW 2 #define MODE_FULLSCREEN 3 #define MODE_DEFAULT 4 +#define MODE_BLANK_SCREEN 5 struct GRAPHICS_INFO { int xsize; diff --git a/api/reduce.cpp b/api/reduce.cpp index 5078b5013c..2cf1728449 100644 --- a/api/reduce.cpp +++ b/api/reduce.cpp @@ -231,7 +231,7 @@ void REDUCED_ARRAY::draw_row_quad(int row) { // draw a black line on front and right edge of each quad // glBegin(GL_LINES); - glColor4f(0., 0., 0., 0.); + glColor4f(0., 0., 0., 1.0); for (i=0; i #include "graphics_api.h" +#include "util.h" #include "win_idle_tracker.h" HWND hWnd=NULL; // Holds Our Window Handle @@ -188,7 +189,7 @@ LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window InitGL(); app_init_gl(); - app_render(width, height, time(0)); + app_render(width, height, dtime()); SwapBuffers(hdc); diff --git a/client/client_types.C b/client/client_types.C index 59ef47dc42..f409e51b75 100644 --- a/client/client_types.C +++ b/client/client_types.C @@ -122,7 +122,7 @@ int PROJECT::parse_state(FILE* in) { else if (parse_str(buf, "", master_url, sizeof(master_url))) continue; else if (parse_str(buf, "", project_name, sizeof(project_name))) continue; else if (parse_str(buf, "", user_name, sizeof(user_name))) continue; - else if (parse_str(buf, "", user_name, sizeof(team_name))) continue; + else if (parse_str(buf, "", team_name, sizeof(team_name))) continue; else if (parse_double(buf, "", user_total_credit)) continue; else if (parse_double(buf, "", user_expavg_credit)) continue; else if (parse_int(buf, "", (int &)user_create_time)) continue;