mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-20 11:12:46 +03:00
Comment all of bitmap_render out for OS3 to see if it resolves a crash
This function doesn't work on OS3 anyway!
This commit is contained in:
parent
924e35af08
commit
829642e8f7
@ -568,6 +568,7 @@ void ami_bitmap_fini(void)
|
|||||||
|
|
||||||
static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
|
static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
|
||||||
{
|
{
|
||||||
|
#ifdef __amigaos4__
|
||||||
struct redraw_context ctx = {
|
struct redraw_context ctx = {
|
||||||
.interactive = false,
|
.interactive = false,
|
||||||
.background_images = true,
|
.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);
|
content_scaled_redraw(content, plot_width, plot_height, &ctx);
|
||||||
|
|
||||||
#ifdef __amigaos4__
|
|
||||||
BltBitMapTags( BLITA_SrcX, 0,
|
BltBitMapTags( BLITA_SrcX, 0,
|
||||||
BLITA_SrcY, 0,
|
BLITA_SrcY, 0,
|
||||||
BLITA_Width, bitmap->width,
|
BLITA_Width, bitmap->width,
|
||||||
@ -606,9 +606,6 @@ static nserror bitmap_render(struct bitmap *bitmap, hlcache_handle *content)
|
|||||||
TAG_DONE);
|
TAG_DONE);
|
||||||
|
|
||||||
ami_bitmap_argb_to_rgba(bitmap);
|
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
|
/**\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) */
|
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.
|
* having an invalid pointer here causes NetSurf to crash.
|
||||||
*/
|
*/
|
||||||
glob = temp_gg;
|
glob = temp_gg;
|
||||||
|
#else
|
||||||
|
#warning FIXME for OS3 (in current state none of bitmap_render can work!)
|
||||||
|
#endif
|
||||||
|
|
||||||
return NSERROR_OK;
|
return NSERROR_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user