diff --git a/osx/boe.graphics.cpp b/osx/boe.graphics.cpp index 893e9c102..26f79ecb6 100644 --- a/osx/boe.graphics.cpp +++ b/osx/boe.graphics.cpp @@ -2929,3 +2929,55 @@ void HideShowMenuBar( ) } */ +void tileImage(Rect area, GWorldPtr img, short mode){ + RgnHandle clip= NewRgn(); + RectRgn(clip,&area); + + GrafPtr cur_port; + GetPort(&cur_port); + const BitMap* drawDest = GetPortBitMapForCopyBits(cur_port); + PixMapHandle drawSource = GetPortPixMap(img); + + Rect imgRect; + GetPortBounds(img, &imgRect); + + int imgWidth=imgRect.right-imgRect.left; + int imgHeight=imgRect.bottom-imgRect.top; + int x,y; + unsigned int hrep = (int)((double(area.right-area.left)/imgWidth)+0.5); + unsigned int vrep = (int)((double(area.bottom-area.top)/imgHeight)+0.5); + for(unsigned int i=0; i