diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-06 23:34:56 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2011-01-06 23:34:56 +0000 |
commit | bcc0c0fde934d838b595806bc8a03c9331e60b93 (patch) | |
tree | 08a51c444caa80536bcdc03b94a3216e91ec6992 /amiga | |
parent | d83f683e9681f8ca68701df93cd23d983e104284 (diff) | |
download | netsurf-bcc0c0fde934d838b595806bc8a03c9331e60b93.tar.gz netsurf-bcc0c0fde934d838b595806bc8a03c9331e60b93.tar.bz2 |
Make thumbnail.c compile for AmigaOS3
svn path=/trunk/netsurf/; revision=11231
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/os3support.h | 19 | ||||
-rwxr-xr-x | amiga/thumbnail.c | 4 |
2 files changed, 22 insertions, 1 deletions
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 <http://www.gnu.org/licenses/>. */ +#include "amiga/os3support.h" #include "desktop/browser.h" #include <proto/graphics.h> #include <proto/Picasso96API.h> @@ -24,6 +25,7 @@ #include <graphics/blitattr.h> #include <graphics/composite.h> #endif +#include <graphics/gfxbase.h> #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; |