diff options
-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; |