diff options
author | Christian A. Weber <chris@gna.ch> | 2020-06-22 17:20:28 +0000 |
---|---|---|
committer | Christian A. Weber <chris@gna.ch> | 2020-06-22 17:20:28 +0000 |
commit | 277cd4a8bad85d78f2b0d187f840a6f8dbef30df (patch) | |
tree | 53eb6eede28e33a7e1a40f0294ed078cd6669b4b | |
parent | 5fa8be9e4cd2567c5cc235c17d5c58d17484823b (diff) | |
download | bobi-277cd4a8bad85d78f2b0d187f840a6f8dbef30df.tar.gz bobi-277cd4a8bad85d78f2b0d187f840a6f8dbef30df.tar.bz2 bobi-277cd4a8bad85d78f2b0d187f840a6f8dbef30df.zip |
Add WaitBlit() after BltBitMap*
-rw-r--r-- | Bob.c | 5 | ||||
-rw-r--r-- | Layer.c | 4 | ||||
-rw-r--r-- | Rotate.c | 1 | ||||
-rw-r--r-- | Zoom.c | 1 |
4 files changed, 6 insertions, 5 deletions
@@ -245,9 +245,8 @@ clearrect: if(tmpmap=BobToBitMap(bob)) { - BltBitMapRastPort(tmpmap,0,0,mainrastport,x0,y0, - bob->Width,bob->Height,0xc0); - + BltBitMapRastPort(tmpmap,0,0,mainrastport,x0,y0,bob->Width,bob->Height,0xc0); + WaitBlit(); MyFreeBitMap(tmpmap); } else ShowMonoReq2("Not enough memory to show bob!"); @@ -204,8 +204,8 @@ void DragBobFunc() RectFill(mainrastport,xold-1,y+bob->Height,xold+bob->Width,yold+bob->Height); WaitTOF(); - BltBitMapRastPort(tmpmap,0,0,mainrastport,x,y, - bob->Width,bob->Height,0xc0); + BltBitMapRastPort(tmpmap,0,0,mainrastport,x,y,bob->Width,bob->Height,0xc0); + WaitBlit(); } } while(looping); mainwindow->Flags &= ~RMBTRAP; @@ -53,6 +53,7 @@ static void RotateBobs(register LONG numframes, register LONG totangle) BltBitMap(sbim,0,0,dbim,(width-sbob->Width)/2, (height-sbob->Height)/2,sbob->Width,sbob->Height,0xc0,0xff,0); + WaitBlit(); BitMapToByteMap(dbim,sbym); for(i=numframes; i>0; --i) { @@ -62,6 +62,7 @@ static struct MyBob *ZoomBob(struct MyBob *bob,register LONG faktor) { BltBitMap(sbim,0,0,dbim,(width-bob->Width)/2, (height-bob->Height)/2,bob->Width,bob->Height,0xc0,0xff,0); + WaitBlit(); ZoomBitMap(dbim,faktor); bob=BitMapToBob(bob,dbim,width); MyFreeBitMap(dbim); |