Ticket #5733: screenshot.diff
File screenshot.diff, 1.4 KB (added by , 15 years ago) |
---|
-
src/apps/screenshot/ScreenshotWindow.h
37 37 bool showConfigWindow = false, 38 38 bool saveScreenshotSilent = false, 39 39 int32 imageFileType = B_PNG_FORMAT, 40 int32 translator = 8,40 int32 translator = 9, 41 41 const char* outputFilename = NULL); 42 42 virtual ~ScreenshotWindow(); 43 43 -
src/apps/screenshot/Screenshot.cpp
30 30 fArgvReceived(false), 31 31 fRefsReceived(false), 32 32 fImageFileType(B_PNG_FORMAT), 33 fTranslator( 8)33 fTranslator(9) 34 34 { 35 35 be_locale->GetAppCatalog(&fCatalog); 36 36 } … … 175 175 fTranslator = 6; 176 176 } else if (strcmp(name, "ppm") == 0) { 177 177 fImageFileType = B_PPM_FORMAT; 178 fTranslator = 9;178 fTranslator = 10; 179 179 } else if (strcmp(name, "targa") == 0) { 180 180 fImageFileType = B_TGA_FORMAT; 181 fTranslator = 1 4;181 fTranslator = 15; 182 182 } else if (strcmp(name, "tif") == 0) { 183 183 fImageFileType = B_TIFF_FORMAT; 184 fTranslator = 1 5;184 fTranslator = 16; 185 185 } else { //png 186 186 fImageFileType = B_PNG_FORMAT; 187 fTranslator = 8;187 fTranslator = 9; 188 188 } 189 189 }