summaryrefslogtreecommitdiff
path: root/amiga/thumbnail.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2015-03-01 11:48:21 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2015-03-01 11:50:20 +0000
commitdb9144230426e9dfa0203ddd4f98568f48160fd6 (patch)
tree93bb6afa6892f02d1f5bb0144c69d98b1df55043 /amiga/thumbnail.c
parentc0c9f54a9c9096eaf68de4f7b8d5d2d15282f4a5 (diff)
downloadnetsurf-db9144230426e9dfa0203ddd4f98568f48160fd6.tar.gz
netsurf-db9144230426e9dfa0203ddd4f98568f48160fd6.tar.bz2
Remove branches that can't be taken under OS3
Micro-optimise these for OS4.1 Remove dummy compositing defines from os3support.h
Diffstat (limited to 'amiga/thumbnail.c')
-rwxr-xr-xamiga/thumbnail.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c
index 538f22bad..cb4cf6143 100755
--- a/amiga/thumbnail.c
+++ b/amiga/thumbnail.c
@@ -70,8 +70,9 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
thumbnail_redraw(content, plot_width, plot_height, &ctx);
- 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__
+ if(__builtin_expect(GfxBase->LibNode.lib_Version >= 53, 1)) {
+ /* AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1) */
float resample_scale = bitmap->width / (float)plot_width;
uint32 flags = COMPFLAG_IgnoreDestAlpha;
if(nsoption_bool(scale_quality)) flags |= COMPFLAG_SrcFilter;
@@ -90,8 +91,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
COMPTAG_OffsetY,0,
COMPTAG_FriendBitMap, scrn->RastPort.BitMap,
TAG_DONE);
- }
- else
+ } else
+#endif
{
bsa.bsa_SrcX = 0;
bsa.bsa_SrcY = 0;