mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
make screenshots write jpegs by default
This commit is contained in:
parent
2e0885688e
commit
b7af2d7ec0
@ -43,6 +43,7 @@ class ShowBase:
|
||||
self.wantSfx = self.config.GetBool('audio-sfx-active', 1)
|
||||
self.wantMusic = self.config.GetBool('audio-music-active', 1)
|
||||
self.wantFog = self.config.GetBool('want-fog', 1)
|
||||
self.screenshotExtension = self.config.GetString('screenshot-extension', 'jpg')
|
||||
if not (self.wantSfx or self.wantMusic):
|
||||
self.wantAnySound = None
|
||||
if not self.wantAnySound:
|
||||
@ -663,7 +664,7 @@ class ShowBase:
|
||||
# Replace spaces with dashes because unix does not like spaces in the filename
|
||||
date = date.replace(' ', '-')
|
||||
date = date.replace(':', '-')
|
||||
imageName = (namePrefix + '-' + date + '-' + str(frameCount) + '.bmp')
|
||||
imageName = ('%s-%s-%d.%s' % (namePrefix, date, frameCount, self.screenshotExtension))
|
||||
self.notify.info("Taking screenshot: " + imageName)
|
||||
takeSnapshot(self.win, imageName)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user