[futurebasic] Re: [FB] Copy GWorld funtion

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2010 : Group Archive : Group : All Groups

From: Robert Purves <listrp@...>
Date: Mon, 15 Nov 2010 08:46:11 +1300
Rich Love wrote:

> This function worked in the old FutureBasic, but fails in FBtoC.
> Anyone know of a fix or alternate code that will work to copy one GWorld to another?
> 
> Error: •• Unknown variable type in line 191 of Icon Pallet.INCL: CGrafPort
>  191:  local fn CopyGW2GW( srcGW as ^CGrafPort, destGW as ^CGrafPort,srcR as ^Rect, destR as ^Rect, cMode,@r as ^Rect)
>                                               ^


local mode
local fn CopyGW2GW( srcGW as CGrafPtr, destGW as CGrafPtr, srcR as ^Rect, destR as ^Rect )
'~'1
ForeColor( _blackColor ) // prevent...
BackColor( _whiteColor ) //...false colouration
CopyBits( #fn GetPortBitMapForCopyBits( srcGW ), #fn GetPortBitMapForCopyBits( destGW ), #srcR, #destR, _srcCopy, 0 )
end fn


Robert P.