From 870c7096842725f354708963c9630deb1c5386fc Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 6 Jan 2014 18:29:05 +0000 Subject: Get Composite() to befriend the screen's BitMap to ensure they are on the same graphics board. This should fix the slowness when multiple graphics cards are installed. --- amiga/bitmap.c | 2 +- amiga/plotters.c | 2 ++ amiga/thumbnail.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'amiga') diff --git a/amiga/bitmap.c b/amiga/bitmap.c index c07f45c67..f25ac2b81 100644 --- a/amiga/bitmap.c +++ b/amiga/bitmap.c @@ -453,7 +453,7 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width, COMPTAG_DestHeight,height, COMPTAG_OffsetX,0, COMPTAG_OffsetY,0, - COMPTAG_FriendBitMap,friendbm, + COMPTAG_FriendBitMap, scrn->RastPort.BitMap, TAG_DONE); #endif } diff --git a/amiga/plotters.c b/amiga/plotters.c index 6683fc58b..05db67f48 100755 --- a/amiga/plotters.c +++ b/amiga/plotters.c @@ -711,6 +711,7 @@ static bool ami_bitmap(int x, int y, int width, int height, struct bitmap *bitma COMPTAG_SrcHeight,height, COMPTAG_OffsetX,x, COMPTAG_OffsetY,y, + COMPTAG_FriendBitMap, scrn->RastPort.BitMap, TAG_DONE); #endif } @@ -873,6 +874,7 @@ static void ami_bitmap_tile_hook(struct Hook *hook,struct RastPort *rp,struct Ba COMPTAG_SrcHeight,bfbm->height, COMPTAG_OffsetX,xf, COMPTAG_OffsetY,yf, + COMPTAG_FriendBitMap, scrn->RastPort.BitMap, TAG_DONE); #endif } diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c index 61102feff..51630be96 100755 --- a/amiga/thumbnail.c +++ b/amiga/thumbnail.c @@ -84,6 +84,7 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, COMPTAG_DestHeight,bitmap->height, COMPTAG_OffsetX,0, COMPTAG_OffsetY,0, + COMPTAG_FriendBitMap, scrn->RastPort.BitMap, TAG_DONE); } else -- cgit v1.2.3