From c1c42eb1c576bdd1d63f3f393e5256833c58eafe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Fri, 11 Jun 2010 12:59:57 +0000 Subject: [PATCH] Use bilinear filtering for Haiku. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37098 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- 3rdparty/mmu_man/themes/ThemeInterfaceView.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/3rdparty/mmu_man/themes/ThemeInterfaceView.cpp b/3rdparty/mmu_man/themes/ThemeInterfaceView.cpp index 5fc58e15a3..3420c30180 100644 --- a/3rdparty/mmu_man/themes/ThemeInterfaceView.cpp +++ b/3rdparty/mmu_man/themes/ThemeInterfaceView.cpp @@ -859,6 +859,11 @@ ThemeInterfaceView::SetScreenshot(BBitmap *shot) fScreenshotPane->ClearViewBitmap(); 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); status_t err = ENOSYS; #ifdef B_ZETA_VERSION @@ -870,8 +875,10 @@ ThemeInterfaceView::SetScreenshot(BBitmap *shot) } else { - fScreenshotPane->SetViewBitmap(shot, shot->Bounds(), fScreenshotPane->Bounds()); + fScreenshotPane->SetViewBitmap(shot, shot->Bounds(), + fScreenshotPane->Bounds()); } +#endif } fScreenshotPane->Invalidate(fScreenshotPane->Bounds());