mirror of https://github.com/BOINC/boinc.git
parent
0f9c5bb373
commit
a6c7974a13
|
@ -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;
|
||||
|
|
|
@ -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<rdimx-1; i++) {
|
||||
x0 = draw_pos[0] + (draw_size[0]*i)/rdimx;
|
||||
x1 = x0 + draw_deltax;
|
||||
|
@ -282,7 +282,7 @@ void REDUCED_ARRAY::draw_row_rect_x(int row) {
|
|||
// draw a black line on top of rectangle
|
||||
//
|
||||
glBegin(GL_LINES);
|
||||
glColor4f(0., 0., 0., 0.);
|
||||
glColor4f(0., 0., 0., 1.0);
|
||||
for (i=0; i<rdimx; i++) {
|
||||
x0 = draw_pos[0] + (draw_size[0]*i)/rdimx;
|
||||
x1 = x0 + draw_deltax*.8f;
|
||||
|
@ -329,7 +329,7 @@ void REDUCED_ARRAY::draw_row_rect_y(int row) {
|
|||
// draw a black line on top of rectangle
|
||||
//
|
||||
glBegin(GL_LINES);
|
||||
glColor4f(0., 0., 0., 0.);
|
||||
glColor4f(0., 0., 0., 1.0);
|
||||
for (i=0; i<rdimx-1; i++) {
|
||||
x0 = draw_pos[0] + (draw_size[0]*i)/rdimx;
|
||||
float h = (row0[i]-rdata_min)/(rdata_max-rdata_min);
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
#include <stdio.h>
|
||||
|
||||
#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);
|
||||
|
||||
|
|
|
@ -122,7 +122,7 @@ int PROJECT::parse_state(FILE* in) {
|
|||
else if (parse_str(buf, "<master_url>", master_url, sizeof(master_url))) continue;
|
||||
else if (parse_str(buf, "<project_name>", project_name, sizeof(project_name))) continue;
|
||||
else if (parse_str(buf, "<user_name>", user_name, sizeof(user_name))) continue;
|
||||
else if (parse_str(buf, "<team_name>", user_name, sizeof(team_name))) continue;
|
||||
else if (parse_str(buf, "<team_name>", team_name, sizeof(team_name))) continue;
|
||||
else if (parse_double(buf, "<user_total_credit>", user_total_credit)) continue;
|
||||
else if (parse_double(buf, "<user_expavg_credit>", user_expavg_credit)) continue;
|
||||
else if (parse_int(buf, "<user_create_time>", (int &)user_create_time)) continue;
|
||||
|
|
Loading…
Reference in New Issue