mirror of
https://github.com/wiiu-env/WiiUPluginSystem.git
synced 2024-11-05 18:35:08 +01:00
[Plugin] Fixing brightness issues with the screenshot plugin
This commit is contained in:
parent
8e0c677e64
commit
2a4ef4cfca
@ -59,7 +59,7 @@ bool saveAsJPEG(const char * path, u8 * sourceBuffer, u32 width, u32 height, u32
|
||||
bool copyBuffer(GX2ColorBuffer * sourceBuffer, GX2ColorBuffer * targetBuffer, u32 targetWidth, u32 targetHeight) {
|
||||
// Making sure the buffers are not NULL
|
||||
if (sourceBuffer != NULL && targetBuffer != NULL) {
|
||||
GX2InitColorBuffer(targetBuffer, GX2_SURFACE_DIM_2D, targetWidth, targetHeight, 1, GX2_SURFACE_FORMAT_TCS_R8_G8_B8_A8_SRGB, GX2_AA_MODE_1X);
|
||||
GX2InitColorBuffer(targetBuffer, GX2_SURFACE_DIM_2D, targetWidth, targetHeight, 1, GX2_SURFACE_FORMAT_TCS_R8_G8_B8_A8_UNORM, GX2_AA_MODE_1X);
|
||||
|
||||
// We need to override some values.
|
||||
targetBuffer->surface.tile = GX2_TILE_MODE_LINEAR_ALIGNED;
|
||||
|
Loading…
Reference in New Issue
Block a user