From 19de443e9a63724b0e2b0d596dcefc9db8cab283 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Tue, 24 Jan 2006 15:31:52 +0000 Subject: [PATCH] removed useless stuff git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16065 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/magnify/main.cpp | 25 +------------------------ src/apps/magnify/main.h | 1 - 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/apps/magnify/main.cpp b/src/apps/magnify/main.cpp index eda2c417c6..b87c0a2aa9 100644 --- a/src/apps/magnify/main.cpp +++ b/src/apps/magnify/main.cpp @@ -62,13 +62,6 @@ const int32 msg_dump = 'dump'; const int32 msg_add_cross_hair = 'acrs'; const int32 msg_remove_cross_hair = 'rcrs'; -#ifndef B_BEOS_VERSION_4 -#define PR31 -#endif - -#ifdef PR31 -extern void _get_screen_bitmap_(BBitmap *offscreen,BRect src, bool enable = TRUE); -#endif //****************************************************************************** @@ -85,16 +78,6 @@ FontHeight(BView* target, bool full) return h; } -static color_map* -ColorMap() -{ - color_map* cmap; - - BScreen screen(B_MAIN_SCREEN_ID); - cmap = (color_map*)screen.ColorMap(); - - return cmap; -} static void CenterWindowOnScreen(BWindow* w) @@ -1738,8 +1721,6 @@ TOSMagnify::TOSMagnify(BRect r, TMagnify* parent, color_space space) :BView(r, "ImageView", B_FOLLOW_NONE, B_WILL_DRAW | B_FRAME_EVENTS), fColorSpace(space), fParent(parent) { - fColorMap = ColorMap(); - switch (space) { case B_COLOR_8_BIT: fBytesPerPixel = 1; @@ -1749,7 +1730,7 @@ TOSMagnify::TOSMagnify(BRect r, TMagnify* parent, color_space space) case B_RGB15_BIG: case B_RGBA15_BIG: case B_RGB16: - case B_RGB16_BIG: + case B_RGB16_BIG: fBytesPerPixel = 2; break; case B_RGB32: @@ -1879,11 +1860,7 @@ TOSMagnify::CopyScreenRect(BRect srcRect) // save a copy of the bits for comparison later memcpy(fOldBits, fBitmap->Bits(), fBitmap->BitsLength()); -#ifdef PR31 - _get_screen_bitmap_(fBitmap, srcRect); -#else screen.ReadBitmap(fBitmap, false, &srcRect); -#endif // let caller know whether bits have actually changed return(memcmp(fBitmap->Bits(), fOldBits, fBitmap->BitsLength()) != 0); diff --git a/src/apps/magnify/main.h b/src/apps/magnify/main.h index a333f72c34..3bdc1bfeaf 100644 --- a/src/apps/magnify/main.h +++ b/src/apps/magnify/main.h @@ -47,7 +47,6 @@ public: BBitmap* Bitmap() { return fBitmap; } private: - color_map* fColorMap; color_space fColorSpace; char* fOldBits; long fBytesPerPixel;