Re: [Super-tux-devel] OpenGL fix
Brought to you by:
wkendrick
From: Keir L. <ke...@th...> - 2004-05-07 17:40:54
|
On Thu, 2004-05-06 at 22:38 +0100, Ricardo Cruz wrote: > Oh, right. You just needed to replace endl by std::endl, I am used to put > 'using std::endl;' in the beginning of my code... > > Anyway, if you have used: > std::cerr << "screen->w: " << SCREEN_W; > std::cerr << "screen->h: " << SCREEN_H; > > they will surely print 640 and 480, since you are just outputting the > definitions... Instead of SCREEN_W and SCREEN_H use screen->w and screen->h, > respectively. These in the end of the st_video_setup_gl(), that it. the following lines i put right at then end of that function: std::cerr << "SCREEN_W: " << screen->w << std::endl; std::cerr << "SCREEN_H: " << screen->h << std::endl; the extra output is the same: SCREEN_W: 640 SCREEN_H: 480 Keir Lawson |