1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Merge pull request #645 from InfoTeddy/general-bug-fixes-2

Reverse menu animation direction in Flip Mode
This commit is contained in:
Terry Cavanagh 2021-03-06 16:54:37 +10:30 committed by GitHub
commit bf3b141cfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2829,7 +2829,7 @@ void Graphics::menuoffrender(void)
BlitSurfaceStandard(tempbufferFlipped, NULL, backBuffer, NULL);
SDL_FreeSurface(tempbufferFlipped);
SDL_Rect offsetRect;
setRect (offsetRect, 0, usethisoffset, backBuffer->w ,backBuffer->h);
setRect (offsetRect, 0, -usethisoffset, backBuffer->w ,backBuffer->h);
SDL_Surface* temp = FlipSurfaceVerticle(menubuffer);
BlitSurfaceStandard(temp,NULL,backBuffer,&offsetRect);
SDL_FreeSurface(temp);