summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-05 11:28:33 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2013-10-05 11:28:33 +0100
commit69e264e4ec029a9ea0472776d62dfa532ee5cf81 (patch)
tree8e0057d34b9db78a8f8fe6e23f944799d273b26a /amiga
parent9ff65d74269fadbbd30c8ade0c31e53988352940 (diff)
downloadnetsurf-69e264e4ec029a9ea0472776d62dfa532ee5cf81.tar.gz
netsurf-69e264e4ec029a9ea0472776d62dfa532ee5cf81.tar.bz2
more tidy-up
Diffstat (limited to 'amiga')
-rw-r--r--amiga/bitmap.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index a3be8a7e7..0704129ec 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -293,7 +293,9 @@ void bitmap_dump(struct bitmap *bitmap)
int x,y;
ULONG *bm = (ULONG *)bitmap->pixdata;
- printf("Width=%ld, Height=%ld, Opaque=%s\nnativebm=%lx, width=%ld, height=%ld\n", bitmap->width, bitmap->height, bitmap->opaque ? "true" : "false", bitmap->nativebm, bitmap->nativebmwidth, bitmap->nativebmheight);
+ printf("Width=%ld, Height=%ld, Opaque=%s\nnativebm=%lx, width=%ld, height=%ld\n",
+ bitmap->width, bitmap->height, bitmap->opaque ? "true" : "false",
+ bitmap->nativebm, bitmap->nativebmwidth, bitmap->nativebmheight);
for(y = 0; y < bitmap->height; y++) {
for(x = 0; x < bitmap->width; x++) {
@@ -437,11 +439,10 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,
if(GfxBase->LibNode.lib_Version >= 53) // AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1)
{
#ifdef __amigaos4__
- uint32 comptype = COMPOSITE_Src;
uint32 flags = 0;
if(nsoption_bool(scale_quality)) flags |= COMPFLAG_SrcFilter;
- CompositeTags(comptype,tbm,scaledbm,
+ CompositeTags(COMPOSITE_Src, tbm, scaledbm,
COMPTAG_ScaleX,COMP_FLOAT_TO_FIX(width/bitmap->width),
COMPTAG_ScaleY,COMP_FLOAT_TO_FIX(height/bitmap->height),
COMPTAG_Flags, flags,
@@ -463,8 +464,6 @@ static struct BitMap *ami_bitmap_get_truecolour(struct bitmap *bitmap,int width,
bsa.bsa_SrcHeight = bitmap->height;
bsa.bsa_DestX = 0;
bsa.bsa_DestY = 0;
-// bsa.bsa_DestWidth = width;
-// bsa.bsa_DestHeight = height;
bsa.bsa_XSrcFactor = bitmap->width;
bsa.bsa_XDestFactor = width;
bsa.bsa_YSrcFactor = bitmap->height;