rename save_screenshot -> save_screenshot_default to prevent confusion

This commit is contained in:
David Rose 2004-02-10 17:23:54 +00:00
parent f4d29cf30b
commit 7b6594acac
3 changed files with 4 additions and 4 deletions

View File

@ -267,7 +267,7 @@ get_display_region(int n) const {
}
////////////////////////////////////////////////////////////////////
// Function: GraphicsOutput::save_screenshot
// Function: GraphicsOutput::save_screenshot_default
// Access: Published
// Description: Saves a screenshot of the window to a default
// filename, and returns the filename, or empty string
@ -282,7 +282,7 @@ get_display_region(int n) const {
// All other % strings in strftime().
////////////////////////////////////////////////////////////////////
Filename GraphicsOutput::
save_screenshot(const string &prefix) {
save_screenshot_default(const string &prefix) {
time_t now = time(NULL);
struct tm *ttm = localtime(&now);
int frame_count = ClockObject::get_global_clock()->get_frame_count();

View File

@ -87,7 +87,7 @@ PUBLISHED:
int get_num_display_regions() const;
DisplayRegion *get_display_region(int n) const;
Filename save_screenshot(const string &prefix = "screenshot");
Filename save_screenshot_default(const string &prefix = "screenshot");
bool save_screenshot(const Filename &filename);
bool get_screenshot(PNMImage &image);

View File

@ -1090,7 +1090,7 @@ event_f9(CPT_Event event, void *data) {
self->_engine.render_frame();
}
Filename filename = wf->get_graphics_window()->save_screenshot();
Filename filename = wf->get_graphics_window()->save_screenshot_default();
string text;
if (filename.empty()) {
text = "Screenshot failed";