Browse Source

rename save_screenshot -> save_screenshot_default to prevent confusion

David Rose 22 years ago
parent
commit
7b6594acac

+ 2 - 2
panda/src/display/graphicsOutput.cxx

@@ -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();

+ 1 - 1
panda/src/display/graphicsOutput.h

@@ -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);
 

+ 1 - 1
panda/src/framework/pandaFramework.cxx

@@ -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";