From 2b9f068e7ee4c0d249c715f9eb5a3c2c8a11e6f8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 26 Mar 2008 18:10:17 +0000 Subject: win32 updates --- src/client/client.cc | 2 +- src/client/client.h | 2 +- src/client/video.cc | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/client') diff --git a/src/client/client.cc b/src/client/client.cc index 99bd41f..b09618e 100644 --- a/src/client/client.cc +++ b/src/client/client.cc @@ -60,7 +60,7 @@ void func_r_restart(std::stringstream &args) //--- public ------------------------------------------------------ -void main(int count, char **arguments) +void client_main(int count, char **arguments) { std::cout << core::name() << " " << core::version() << std::endl; diff --git a/src/client/client.h b/src/client/client.h index 2113202..b1a50df 100644 --- a/src/client/client.h +++ b/src/client/client.h @@ -11,7 +11,7 @@ namespace client { /// the client main loop -void main(int count, char **arguments); +void client_main(int count, char **arguments); } diff --git a/src/client/video.cc b/src/client/video.cc index a7a74d5..e41f774 100644 --- a/src/client/video.cc +++ b/src/client/video.cc @@ -215,7 +215,7 @@ void screenshot() unsigned char *rgb_data = (unsigned char *) malloc(video::width * video::height * 3); // read OpenGL pixels into the buffer - //glReadBuffer(GL_FRONT); + //glReadBuffer(GL_BACK); glReadPixels(0, 0, (GLsizei) video::width, (GLsizei) video::height, GL_RGB, GL_UNSIGNED_BYTE, (void *) rgb_data); // either OpenGL actually returns BGR, or TGA wants BGR @@ -233,7 +233,6 @@ void screenshot() // close file ofs.close(); - con_print << "Wrote " << shortname << std::endl; } -- cgit v1.2.3