summaryrefslogtreecommitdiff
path: root/frontends/amiga/bitmap.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-05-06 10:31:51 +0100
committerVincent Sanders <vince@kyllikki.org>2019-05-06 10:32:16 +0100
commitdd96a69573e7a45b5ac4a2b172319d900c89f53b (patch)
treef69ac6b3bc4fb4499ee11de261adb0be24c29a03 /frontends/amiga/bitmap.c
parent10930fcbaf985bdc414e9a7951dc8a0e3e9d53f6 (diff)
downloadnetsurf-dd96a69573e7a45b5ac4a2b172319d900c89f53b.tar.gz
netsurf-dd96a69573e7a45b5ac4a2b172319d900c89f53b.tar.bz2
fix several amiga frontend warnings
Diffstat (limited to 'frontends/amiga/bitmap.c')
-rw-r--r--frontends/amiga/bitmap.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/frontends/amiga/bitmap.c b/frontends/amiga/bitmap.c
index 32b9b1290..8341d41c8 100644
--- a/frontends/amiga/bitmap.c
+++ b/frontends/amiga/bitmap.c
@@ -531,10 +531,13 @@ static inline struct BitMap *ami_bitmap_get_generic(struct bitmap *bitmap,
}
ami_bitmap_rgba_to_argb(bitmap);
- if(bitmap->drawhandle = ObtainDrawHandle(NULL,
- &rp, scrn->ViewPort.ColorMap,
- GGFX_DitherMode, dithermode,
- TAG_DONE)) {
+ bitmap->drawhandle = ObtainDrawHandle(
+ NULL,
+ &rp,
+ scrn->ViewPort.ColorMap,
+ GGFX_DitherMode, dithermode,
+ TAG_DONE);
+ if(bitmap->drawhandle) {
APTR ddh = CreateDirectDrawHandle(bitmap->drawhandle,
bitmap->width, bitmap->height,
width, height, NULL);