{"push_id":2402946825,"size":2,"distinct_size":2,"ref":"refs/heads/jpg_save_support","head":"5fc6fb47249634e9ac6158776a0ba45a21cfe439","before":"d17980cda04f801dcc255f356f047be7fa8a7f1c","commits":[{"sha":"37a0d1db2b2fcb3fa9bd77baad253ef306cbe42e","author":{"name":"Charles Dang","email":"090e37c98ddcb29bdfba0b3f8a051a0364d4c160@gmail.com"},"message":"Use SDL_Image to handle saving PNG screenshots instead of SDL_SavePNG\n\nWhen iceiceice (@cbeck88) added \"save screenshots as PNGs\" support back in 2014\n(8dfdc6b185f7d9c5d6166f28dd2693fc64a30a27) we had yet to switch to SDL 2. At the\ntime, SDL_Image didn't provide any method of saving PNG files on its own. However,\nit does as of SDL_Image 2.0.0.\n\nA small caveat is that this built-in PNG save functionality is a bit less efficient\nat compression than SDL_SavePNG. A test in DiD S1 with SDL_SavePNG_RW vs IMG_SavePNG_RW\nyielded a file ~ 1 MB larger in the latter case.\n\nThis removed SDL_SavePNG and it's optional build-time dependency of libpng.","distinct":true,"url":"https://api.github.com/repos/Vultraz/wesnoth/commits/37a0d1db2b2fcb3fa9bd77baad253ef306cbe42e"},{"sha":"5fc6fb47249634e9ac6158776a0ba45a21cfe439","author":{"name":"Charles Dang","email":"090e37c98ddcb29bdfba0b3f8a051a0364d4c160@gmail.com"},"message":"Save screenshots as JPGs when building with SDL_Image 2.0.2 or newer\n\nThis functionality was added in that release. Since it's only 4 months old, it's\ntoo early to make minimum; it won't be available on some Linux distros yet.\n\nThere's currently no way to choose between JPG or PNG files. That can (and should)\nbe added later. For now, it defaults to JPG files if SDL_Image is of the appropriate\nversion.\n\nI've also left the BMP fallback path, but that should never be reached now, since\nPNG saving is always available\n\nCloses #1448.","distinct":true,"url":"https://api.github.com/repos/Vultraz/wesnoth/commits/5fc6fb47249634e9ac6158776a0ba45a21cfe439"}]}
{"actor":{"display_login":"Vultraz"}}