Navigation Menu

Skip to content

Commit

Permalink
[fix] - don't swap pixels on the first line only - but do it with the…
Browse files Browse the repository at this point in the history
… whole screenshot :D
  • Loading branch information
Memphiz committed Nov 27, 2011
1 parent 7d546a8 commit ba94127
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions xbmc/Application.cpp
Expand Up @@ -1339,6 +1339,7 @@ void CApplication::StartAirplayServer()
}
}
#endif
CUtil::TakeScreenshot();
}

void CApplication::StopAirplayServer(bool bWait)
Expand Down
2 changes: 1 addition & 1 deletion xbmc/Util.cpp
Expand Up @@ -938,7 +938,7 @@ void CUtil::TakeScreenshot(const CStdString &filename, bool sync)
{
#ifdef HAS_GLES
// we need to save in BGRA order so XOR Swap RGBA -> BGRA
unsigned char* swap_pixels = pixels;
unsigned char* swap_pixels = pixels + (height - y - 1) * stride;
for (int x = 0; x < width; x++, swap_pixels+=4)
{
if (swap_pixels[0] != swap_pixels[2])
Expand Down

0 comments on commit ba94127

Please sign in to comment.