1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-19 17:23:33 +01:00

Remove duplicated code

This commit is contained in:
David Maciejak
2025-12-21 15:36:47 -05:00
committed by Carlos R. Mafra
parent 541947e9ef
commit 8f1ee27595

View File

@@ -1348,11 +1348,7 @@ void ScreenCapture(WScreen *scr, int mode)
}
if (img) {
#ifdef USE_PNG
if (RSaveTitledImage(img, filepath, (char *)(filetype + 1), "Screenshot from Window Maker")) {
#else
if (RSaveTitledImage(img, filepath, (char *)(filetype + 1), "Screenshot from Window Maker")) {
#endif
scale_img = RSmoothScaleImage(img, scr->scr_width / 10, scr->scr_height / 10);
showMiniScreenshot(scr, scale_img);
RReleaseImage(scale_img);