IFSSaver: Don't DirectDraw for preview.
The ScreenSaver window is now a BDirectWindow, but, _DrawFractals() makes the assumption that a direct window means that the screen saver is running full screen, so, we need to make sure we draw the preview using the DrawBitmapAsync() method. Fixes #10832
This commit is contained in:
@@ -220,9 +220,8 @@ IFSSaver::DirectDraw(int32 frame)
|
||||
if (frame == 0)
|
||||
fLastDrawnFrame = -1;
|
||||
|
||||
int32 frames = frame - fLastDrawnFrame;
|
||||
if (fDirectInfo.bits != NULL) {
|
||||
fIFS->Draw(NULL, &fDirectInfo, frames);
|
||||
if (!fIsPreview && fDirectInfo.bits != NULL) {
|
||||
fIFS->Draw(NULL, &fDirectInfo, frame - fLastDrawnFrame);
|
||||
fLastDrawnFrame = frame;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user