SoftGPU backend: Fix can't take screenshots

This commit is contained in:
UnknownShadow200 2024-05-25 17:24:41 +10:00
parent b3a1d45f75
commit a7d2921a85

View File

@ -452,7 +452,9 @@ void Gfx_DrawIndexedTris_T2fC4b(int verticesCount, int startVertex) {
*---------------------------------------------------------Other/Misc------------------------------------------------------* *---------------------------------------------------------Other/Misc------------------------------------------------------*
*#########################################################################################################################*/ *#########################################################################################################################*/
cc_result Gfx_TakeScreenshot(struct Stream* output) { cc_result Gfx_TakeScreenshot(struct Stream* output) {
return ERR_NOT_SUPPORTED; struct Bitmap bmp;
Bitmap_Init(bmp, width, height, colorBuffer);
return Png_Encode(&bmp, output, NULL, false, NULL);
} }
cc_bool Gfx_WarnIfNecessary(void) { cc_bool Gfx_WarnIfNecessary(void) {