TWINE: removed raw buffer crossFade method

This commit is contained in:
Martin Gerhardy 2020-10-20 23:44:34 +02:00 committed by Eugene Sandulenko
parent ecbc291e25
commit 3afcbb8f35
2 changed files with 4 additions and 9 deletions

View File

@ -810,18 +810,14 @@ void TwinEEngine::flip() {
void TwinEEngine::copyBlockPhys(int32 left, int32 top, int32 right, int32 bottom) {
// TODO: fix this
//g_system->copyRectToScreen(frontVideoBuffer, SCREEN_WIDTH, left, top, right - left + 1, bottom - top + 1);
g_system->updateScreen();
}
void TwinEEngine::crossFade(const uint8 *buffer, uint8 *palette) {
// TODO: implement cross fading
g_system->copyRectToScreen(buffer, SCREEN_WIDTH, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT);
g_system->copyRectToScreen(frontVideoBuffer.getPixels(), frontVideoBuffer.pitch, left, top, right - left + 1, bottom - top + 1);
g_system->updateScreen();
}
void TwinEEngine::crossFade(const Graphics::Surface &buffer, uint8 *palette) {
crossFade((const uint8*)buffer.getPixels(), palette);
// TODO: implement cross fading
g_system->copyRectToScreen(buffer.getPixels(), buffer.pitch, 0, 0, buffer.w, buffer.h);
g_system->updateScreen();
}
void TwinEEngine::toggleFullscreen() {

View File

@ -280,7 +280,6 @@ public:
* @param buffer screen buffer
* @param palette new palette to cross fade
*/
void crossFade(const uint8 *buffer, uint8 *palette);
void crossFade(const Graphics::Surface &buffer, uint8 *palette);
/** Switch between window and fullscreen modes */