diff --git a/desmume/src/windows/main.cpp b/desmume/src/windows/main.cpp index 2477ab920..6748f2fdd 100644 --- a/desmume/src/windows/main.cpp +++ b/desmume/src/windows/main.cpp @@ -936,7 +936,7 @@ template static void doRotate(void* dst) else for(int y = 0; y < height; y++) { - memcpy(buffer, src, width * sizeof(u32)); + memcpy(buffer, &src[y * width], width * sizeof(u32)); buffer += pitch; } else // if(video.rotation==180)