From 7c05501da755d924a759acf3fe1b6454b3558cdd Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Mon, 3 Mar 2003 18:46:06 +0000 Subject: [PATCH] screensaver fixes svn path=/trunk/boinc/; revision=1002 --- api/graphics_api.h | 1 + api/windows_opengl.cpp | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/api/graphics_api.h b/api/graphics_api.h index 221327dbd5..adfc3e7cb2 100755 --- a/api/graphics_api.h +++ b/api/graphics_api.h @@ -30,6 +30,7 @@ extern "C" { GLenum InitGL(GLvoid); GLenum ReSizeGLScene(GLsizei width, GLsizei height); extern bool app_render(int xs, int ys, double time_of_day); +extern void app_init_gl(void); #ifdef __cplusplus } #endif diff --git a/api/windows_opengl.cpp b/api/windows_opengl.cpp index 7c76f0deb1..425d501e1f 100755 --- a/api/windows_opengl.cpp +++ b/api/windows_opengl.cpp @@ -31,6 +31,7 @@ #include #include "graphics_api.h" +#include "util.h" #include "win_idle_tracker.h" HWND hWnd=NULL; // Holds Our Window Handle @@ -126,8 +127,9 @@ LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window ReSizeGLScene(width, height); InitGL(); + app_init_gl(); - app_render(width, height, time(0)); + app_render(width, height, dtime()); SwapBuffers(bdc);