Re: [Super-tux-devel] OpenGL fix
Brought to you by:
wkendrick
From: Ricardo C. <ri...@ae...> - 2004-05-06 21:50:36
|
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. Thanks, Ricardo Em Quinta, 6 de Maio de 2004 21:04, o Keir Lawson escreveu: > On Thu, 2004-05-06 at 12:44 +0100, Ricardo Cruz wrote: > > Could you just add these two lines to the final of the > > st_video_setup_gl() func in setup.cpp : > > > > std::cerr << "screen->w: " << screen->w << endl; > > std::cerr << "screen->h: " << screen->h << endl; > > > > And send the output. > > well that line made it fail to compile (didnt like the endls, something > about them being undefined or something), i removed the ,, endl bit and > it compiled but nothing extra was outputted, however std::cerr << > "screen->h/w: " << SCREEN_H/W; gave me the following extra output: > screen->w: 640screen->h: 480 > > Keir Lawson > > > -- It's amazing how nice people are to you when they know you're going away. -- Michael Arlen |