Increased screenshot file name buffer size;
ET4000 I/O and PCI reads now return the actual specified revision.
This commit is contained in:
12
src/video.c
12
src/video.c
@@ -589,21 +589,21 @@ void take_screenshot()
|
||||
#else
|
||||
time_t now;
|
||||
struct tm *info;
|
||||
char screenshot_fn_partial[1024];
|
||||
char screenshot_fn[2048];
|
||||
char screenshot_fn_partial[2048];
|
||||
char screenshot_fn[4096];
|
||||
|
||||
void take_screenshot()
|
||||
{
|
||||
if ((vid_api < 0) || (vid_api > 1)) return;
|
||||
time(&now);
|
||||
info = localtime(&now);
|
||||
memset(screenshot_fn, 0, 1024);
|
||||
memset(screenshot_fn, 0, 4096);
|
||||
memset(screenshot_fn_partial, 0, 2048);
|
||||
pclog("Video API is: %i\n", vid_api);
|
||||
if (vid_api == 1)
|
||||
{
|
||||
strftime(screenshot_fn_partial, 1024, "screenshots\\%Y%m%d_%H%M%S.png", info);
|
||||
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 2047);
|
||||
strftime(screenshot_fn_partial, 2048, "screenshots\\%Y%m%d_%H%M%S.png", info);
|
||||
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
|
||||
if (video_fullscreen)
|
||||
{
|
||||
d3d_fs_take_screenshot(screenshot_fn);
|
||||
@@ -617,7 +617,7 @@ void take_screenshot()
|
||||
else if (vid_api == 0)
|
||||
{
|
||||
strftime(screenshot_fn_partial, 1024, "screenshots\\%Y%m%d_%H%M%S.bmp", info);
|
||||
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 2047);
|
||||
append_filename(screenshot_fn, pcempath, screenshot_fn_partial, 4095);
|
||||
if (video_fullscreen)
|
||||
{
|
||||
ddraw_fs_take_screenshot(screenshot_fn);
|
||||
|
||||
Reference in New Issue
Block a user