Use bilinear filtering for Haiku.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37098 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2010-06-11 12:59:57 +00:00
parent 46f84134a9
commit c1c42eb1c5
+8 -1
View File
@@ -859,6 +859,11 @@ ThemeInterfaceView::SetScreenshot(BBitmap *shot)
fScreenshotPane->ClearViewBitmap(); fScreenshotPane->ClearViewBitmap();
if (shot) if (shot)
{ {
#ifdef __HAIKU__
fScreenshotPane->SetViewBitmap(shot, shot->Bounds(),
fScreenshotPane->Bounds(), B_FOLLOW_ALL, B_FILTER_BITMAP_BILINEAR);
#else
BBitmap scaled(fScreenshotPane->Bounds(), B_RGB32); BBitmap scaled(fScreenshotPane->Bounds(), B_RGB32);
status_t err = ENOSYS; status_t err = ENOSYS;
#ifdef B_ZETA_VERSION #ifdef B_ZETA_VERSION
@@ -870,8 +875,10 @@ ThemeInterfaceView::SetScreenshot(BBitmap *shot)
} }
else else
{ {
fScreenshotPane->SetViewBitmap(shot, shot->Bounds(), fScreenshotPane->Bounds()); fScreenshotPane->SetViewBitmap(shot, shot->Bounds(),
fScreenshotPane->Bounds());
} }
#endif
} }
fScreenshotPane->Invalidate(fScreenshotPane->Bounds()); fScreenshotPane->Invalidate(fScreenshotPane->Bounds());