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:
John Scipione
2014-05-15 17:42:12 -04:00
parent f5e32a8614
commit 979af5a8a2
+2 -3
View File
@@ -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;
}
}