diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 21:45:23 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2015-01-31 21:45:23 +0000 |
commit | 7370e83d605814c0d79482427dd17a2621a86c7e (patch) | |
tree | 436637a4792ce8ba9be1ed3d43b01ee355024129 /amiga/rtg.c | |
parent | 2544f60ae09869567f91d29ead78e33daee62806 (diff) | |
download | netsurf-7370e83d605814c0d79482427dd17a2621a86c7e.tar.gz netsurf-7370e83d605814c0d79482427dd17a2621a86c7e.tar.bz2 |
Squash a minor warning from GCC
Diffstat (limited to 'amiga/rtg.c')
-rw-r--r-- | amiga/rtg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/amiga/rtg.c b/amiga/rtg.c index 33d0242d4..e1562841e 100644 --- a/amiga/rtg.c +++ b/amiga/rtg.c @@ -28,6 +28,9 @@ struct BitMap *ami_rtg_allocbitmap(ULONG width, ULONG height, ULONG depth, ULONG flags, struct BitMap *friend, RGBFTYPE format) { if(P96Base == NULL) { +#ifndef __amigaos4__ + if(depth > 8) depth = 8; +#endif return AllocBitMap(width, height, depth, flags, friend); } else { return p96AllocBitMap(width, height, depth, flags, friend, format); |