Modern OSLib (as of 3 months ago) no longer has colourtrans_CURRENT_MODE.

Use os_CURRENT_MODE, instead.

svn path=/trunk/netsurf/; revision=9710
This commit is contained in:
John Mark Bell 2009-12-02 16:30:44 +00:00
parent e30c2b1e20
commit dea67b984a
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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) {