From bcc0c0fde934d838b595806bc8a03c9331e60b93 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 6 Jan 2011 23:34:56 +0000 Subject: Make thumbnail.c compile for AmigaOS3 svn path=/trunk/netsurf/; revision=11231 --- amiga/os3support.h | 19 +++++++++++++++++++ amiga/thumbnail.c | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/amiga/os3support.h b/amiga/os3support.h index 93dca85b7..4db3cd4eb 100644 --- a/amiga/os3support.h +++ b/amiga/os3support.h @@ -52,6 +52,25 @@ struct TimeVal { uint32 Microseconds; }; +/* Compositing */ +#define COMPFLAG_IgnoreDestAlpha 0 +#define COMPFLAG_SrcAlphaOverride 0 +#define COMPFLAG_SrcFilter 0 + +#define COMPOSITE_Src 0 + +#define COMPTAG_ScaleX 0 +#define COMPTAG_ScaleY 0 +#define COMPTAG_DestX 0 +#define COMPTAG_DestY 0 +#define COMPTAG_DestWidth 0 +#define COMPTAG_DestHeight 0 +#define COMPTAG_OffsetX 0 +#define COMPTAG_OffsetY 0 + +#define CompositeTags(a, ...) ((void) (a)) +#define COMP_FLOAT_TO_FIX(f) (f) + #endif #endif diff --git a/amiga/thumbnail.c b/amiga/thumbnail.c index c7321086a..5d10d3e0c 100755 --- a/amiga/thumbnail.c +++ b/amiga/thumbnail.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include "amiga/os3support.h" #include "desktop/browser.h" #include #include @@ -24,6 +25,7 @@ #include #include #endif +#include #include "amiga/gui.h" #include "amiga/bitmap.h" #include "amiga/options.h" @@ -49,7 +51,7 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap, content_get_width(content), 1.0, 0xFFFFFF); current_redraw_browser = NULL; - if(GfxBase->lib_Version >= 53) // AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1) + if(GfxBase->LibNode.lib_Version >= 53) // AutoDoc says v52, but this function isn't in OS4.0, so checking for v53 (OS4.1) { uint32 flags = COMPFLAG_IgnoreDestAlpha | COMPFLAG_SrcAlphaOverride; if(option_scale_quality) flags |= COMPFLAG_SrcFilter; -- cgit v1.2.3