From 92051890f1127429142cc0b60e3e9a1e567bf01d Mon Sep 17 00:00:00 2001 From: Fabien Costantini Date: Mon, 13 Oct 2008 23:10:43 +0000 Subject: Quickdraw removal: option removed from configure, all Qd code removed from sources. Also took this opportunity to sort the ifdef clauses so that USE_X11 shows first. Also added error pragma to enforce proper target checking, thus make even less assumptions. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6423 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_draw_image_mac.cxx | 114 +--------------------------------------------- 1 file changed, 2 insertions(+), 112 deletions(-) (limited to 'src/fl_draw_image_mac.cxx') diff --git a/src/fl_draw_image_mac.cxx b/src/fl_draw_image_mac.cxx index fb493b487..d8ccb14b0 100644 --- a/src/fl_draw_image_mac.cxx +++ b/src/fl_draw_image_mac.cxx @@ -56,117 +56,7 @@ static void innards(const uchar *buf, int X, int Y, int W, int H, { if (!linedelta) linedelta = W*delta; -#ifdef __APPLE_QD__ - // theoretically, if the current GPort permits, we could write - // directly into it, avoiding the temporary GWorld. For now I - // will go the safe way... . - char direct = 0; - GWorldPtr gw; - Rect bounds; - bounds.left=0; bounds.right=W; bounds.top=0; bounds.bottom=H; - QDErr err = NewGWorld( &gw, 32, &bounds, 0L, 0L, useTempMem ); - if (err==noErr && gw) { - PixMapHandle pm = GetGWorldPixMap( gw ); - if ( pm ) { - LockPixels( pm ); - if ( *pm ) { - uchar *base = (uchar*)GetPixBaseAddr( pm ); - if ( base ) { - PixMapPtr pmp = *pm; - // make absolutely sure that we can use a direct memory write to - // create the pixmap! - if ( pmp->pixelType == 16 || pmp->pixelSize == 32 || pmp->cmpCount == 3 || pmp->cmpSize == 8 ) { - int rowBytes = pmp->rowBytes & 0x3fff; - if ( cb ) - { - uchar *tmpBuf = new uchar[ W*delta ]; - if ( mono ) delta -= 1; else delta -= 3; - for ( int i=0; i