summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--amiga/bitmap.c14
-rw-r--r--amiga/gui.c3
2 files changed, 4 insertions, 13 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index ec6ce79a1..7c676df0a 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -20,7 +20,6 @@
#include <proto/exec.h>
#ifdef __amigaos4__
-#include <proto/Picasso96API.h>
#include <graphics/blitattr.h>
#include <graphics/composite.h>
#endif
@@ -390,9 +389,7 @@ struct bitmap *ami_bitmap_from_datatype(char *filename)
static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,int height,struct BitMap *friendbm)
{
#ifdef __amigaos4__
- struct RenderInfo ri;
struct BitMap *tbm = NULL;
- struct RastPort trp;
if(!bitmap) return NULL;
@@ -416,17 +413,10 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,
if(!tbm)
{
- ri.Memory = bitmap->pixdata;
- ri.BytesPerRow = bitmap->width * 4;
- ri.RGBFormat = AMI_BITMAP_FORMAT;
-
if((tbm = ami_rtg_allocbitmap(bitmap->width, bitmap->height, 32, 0,
friendbm, AMI_BITMAP_FORMAT))) {
- InitRastPort(&trp);
- trp.BitMap = tbm;
- /*\todo abstract p96WritePixelArray */
- p96WritePixelArray((struct RenderInfo *)&ri, 0, 0, &trp, 0, 0,
- bitmap->width, bitmap->height);
+ ami_rtg_writepixelarray(bitmap->pixdata, tbm, bitmap->width, bitmap->height,
+ bitmap->width * 4, AMI_BITMAP_FORMAT);
}
if(nsoption_int(cache_bitmaps) == 2)
diff --git a/amiga/gui.c b/amiga/gui.c
index 5d0504c8a..ad70f2fbb 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1565,9 +1565,10 @@ static bool ami_gui_vscroll_add(struct gui_window_2 *gwin)
ICA_TARGET, ICTARGET_IDCMP,
ScrollerEnd;
#ifdef __amigaos4__
-#warning FIXME for OS3
IDoMethod(gwin->objects[GID_VSCROLLLAYOUT], LM_ADDCHILD,
gwin->win, gwin->objects[GID_VSCROLL], attrs);
+#else
+#warning FIXME for OS3
#endif
return true;
}