Reverting screenshot stuff - error prone
This commit is contained in:
parent
dcba6e84bd
commit
6b1ef665bf
|
@ -6,7 +6,7 @@ main/menu.c: Added a new set of preset resolutions
|
||||||
|
|
||||||
20080521
|
20080521
|
||||||
--------
|
--------
|
||||||
arch/ogl/gr.c, arch/sdl/mouse.c, main/game.h: Make Screenshots over backbuffer; Implmented filtered mouse delta reading
|
arch/ogl/gr.c, arch/sdl/mouse.c, main/game.h: Implmented filtered mouse delta reading
|
||||||
SConstruct, INSTALL.txt, README.txt: Updated docs
|
SConstruct, INSTALL.txt, README.txt: Updated docs
|
||||||
|
|
||||||
20080520
|
20080520
|
||||||
|
|
|
@ -632,16 +632,17 @@ void save_screen_shot(int automap_flag)
|
||||||
if (!automap_flag && PlayerCfg.OglPRShot && Function_mode == FMODE_GAME)
|
if (!automap_flag && PlayerCfg.OglPRShot && Function_mode == FMODE_GAME)
|
||||||
{
|
{
|
||||||
gr_set_current_canvas(NULL);
|
gr_set_current_canvas(NULL);
|
||||||
render_frame(0,0);
|
render_frame(0);
|
||||||
gr_set_curfont(MEDIUM2_FONT);
|
gr_set_curfont(MEDIUM2_FONT);
|
||||||
gr_printf(SWIDTH-FSPACX(92),SHEIGHT-LINE_SPACING,"DXX-Rebirth\n");
|
gr_printf(SWIDTH-FSPACX(92),SHEIGHT-LINE_SPACING,"DXX-Rebirth\n");
|
||||||
|
ogl_do_palfx();
|
||||||
|
glReadBuffer(GL_BACK);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
game_render_frame_mono(0);
|
glReadBuffer(GL_FRONT);
|
||||||
}
|
}
|
||||||
ogl_do_palfx();
|
|
||||||
glReadBuffer(GL_BACK);
|
|
||||||
buf = d_malloc(grd_curscreen->sc_w*grd_curscreen->sc_h*3);
|
buf = d_malloc(grd_curscreen->sc_w*grd_curscreen->sc_h*3);
|
||||||
write_bmp(savename,grd_curscreen->sc_w,grd_curscreen->sc_h,buf);
|
write_bmp(savename,grd_curscreen->sc_w,grd_curscreen->sc_h,buf);
|
||||||
d_free(buf);
|
d_free(buf);
|
||||||
|
|
Loading…
Reference in a new issue