summaryrefslogtreecommitdiff
path: root/amiga
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-25 19:48:28 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-25 19:48:28 +0000
commit829642e8f799973d215bacc21316e57ae88d6215 (patch)
treee2bf363e3fbbdfb308fd0c49027bfc31e089b99f /amiga
parent924e35af082249059328cf6552600945e1ffae7d (diff)
downloadnetsurf-829642e8f799973d215bacc21316e57ae88d6215.tar.gz
netsurf-829642e8f799973d215bacc21316e57ae88d6215.tar.bz2
Comment all of bitmap_render out for OS3 to see if it resolves a crash
This function doesn't work on OS3 anyway!
Diffstat (limited to 'amiga')
-rw-r--r--amiga/bitmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/amiga/bitmap.c b/amiga/bitmap.c
index 28c229b06..bc85afb36 100644
--- a/amiga/bitmap.c
+++ b/amiga/bitmap.c
@@ -568,6 +568,7 @@ void ami_bitmap_fini(void)
static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
{
+#ifdef __amigaos4__
struct redraw_context ctx = {
.interactive = false,
.background_images = true,
@@ -591,7 +592,6 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
content_scaled_redraw(content, plot_width, plot_height, &ctx);
-#ifdef __amigaos4__
BltBitMapTags( BLITA_SrcX, 0,
BLITA_SrcY, 0,
BLITA_Width, bitmap->width,
@@ -606,9 +606,6 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
TAG_DONE);
ami_bitmap_argb_to_rgba(bitmap);
-#else
-#warning FIXME for OS3 (in current state none of bitmap_render can work!)
-#endif
/**\todo In theory we should be able to move the bitmap to our native area
to try to avoid re-conversion (at the expense of memory) */
@@ -621,6 +618,9 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
* having an invalid pointer here causes NetSurf to crash.
*/
glob = temp_gg;
+#else
+#warning FIXME for OS3 (in current state none of bitmap_render can work!)
+#endif
return NSERROR_OK;
}