From dea67b984a00760533b5b55aff7fd2545e653864 Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Wed, 2 Dec 2009 16:30:44 +0000 Subject: Modern OSLib (as of 3 months ago) no longer has colourtrans_CURRENT_MODE. Use os_CURRENT_MODE, instead. svn path=/trunk/netsurf/; revision=9710 --- riscos/buffer.c | 2 +- riscos/image.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'riscos') diff --git a/riscos/buffer.c b/riscos/buffer.c index 4c35c9ad2..d135d3d84 100644 --- a/riscos/buffer.c +++ b/riscos/buffer.c @@ -193,7 +193,7 @@ void ro_gui_buffer_open(wimp_draw *redraw) header->mode = mode; if (palette) xcolourtrans_read_palette((osspriteop_area *)mode, - (osspriteop_id)colourtrans_CURRENT_MODE, + (osspriteop_id)os_CURRENT_MODE, (os_palette *)(header + 1), palette_size, (colourtrans_palette_flags) colourtrans_FLASHING_PALETTE, 0); diff --git a/riscos/image.c b/riscos/image.c index 46d2d3aa3..6ba57695b 100644 --- a/riscos/image.c +++ b/riscos/image.c @@ -172,7 +172,7 @@ bool image_redraw_os(osspriteop_id header, int x, int y, int req_width, error = xcolourtrans_generate_table_for_sprite( (osspriteop_area *)0x100, header, - colourtrans_CURRENT_MODE, + os_CURRENT_MODE, colourtrans_CURRENT_PALETTE, 0, colourtrans_GIVEN_SPRITE, 0, 0, &size); if (error) { @@ -190,7 +190,7 @@ bool image_redraw_os(osspriteop_id header, int x, int y, int req_width, error = xcolourtrans_generate_table_for_sprite( (osspriteop_area *)0x100, header, - colourtrans_CURRENT_MODE, + os_CURRENT_MODE, colourtrans_CURRENT_PALETTE, table, colourtrans_GIVEN_SPRITE, 0, 0, 0); if (error) { -- cgit v1.2.3