Parcourir la source

properly flip screenshots

vaxerski il y a 3 ans
Parent
commit
031ed01c42
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/WallpaperEngine/Application/CWallpaperApplication.cpp

+ 1 - 1
src/WallpaperEngine/Application/CWallpaperApplication.cpp

@@ -248,7 +248,7 @@ namespace WallpaperEngine::Application
                 color.rgbBlue = *pixel++;
 
                 // set the pixel in the destination
-                FreeImage_SetPixelColor (bitmap, x, y, &color);
+                FreeImage_SetPixelColor (bitmap, x, (context.getOutput()->renderVFlip() ? (height - y) : y), &color);
             }
         }