From 06144864e13fb2fb9ed32c68e8a612a68103317c Mon Sep 17 00:00:00 2001 From: Walter van Niftrik Date: Wed, 24 Jun 2009 19:12:45 +0000 Subject: SCI: Partial support for dual-language games. svn-id: r41833 --- engines/sci/gfx/gfx_gui.cpp | 10 +++++----- engines/sci/gfx/gfx_gui.h | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'engines/sci/gfx') diff --git a/engines/sci/gfx/gfx_gui.cpp b/engines/sci/gfx/gfx_gui.cpp index f73a13d6dd..fb05c0fe29 100644 --- a/engines/sci/gfx/gfx_gui.cpp +++ b/engines/sci/gfx/gfx_gui.cpp @@ -266,7 +266,7 @@ static rect_t _move_and_extend_rect(rect_t rect, Common::Point point, int yplus) return gfx_rect(rect.x + point.x, rect.y + point.y, rect.width + 1, rect.height + yplus); } -GfxList *_sciw_add_text_to_list(GfxList *list, GfxPort *port, rect_t zone, char *text, +GfxList *_sciw_add_text_to_list(GfxList *list, GfxPort *port, rect_t zone, const char *text, int font, gfx_alignment_t align, char framed, char inverse, int flags, char gray_text) { gfx_color_t *color1, *color2, *bgcolor; @@ -294,7 +294,7 @@ GfxList *_sciw_add_text_to_list(GfxList *list, GfxPort *port, rect_t zone, char return list; } -GfxList *sciw_new_button_control(GfxPort *port, reg_t ID, rect_t zone, char *text, int font, char selected, char inverse, char grayed_out) { +GfxList *sciw_new_button_control(GfxPort *port, reg_t ID, rect_t zone, const char *text, int font, char selected, char inverse, char grayed_out) { gfx_color_t *frame_col = (inverse) ? &(port->_bgcolor) : &(port->_color); GfxList *list; @@ -332,7 +332,7 @@ GfxList *sciw_new_button_control(GfxPort *port, reg_t ID, rect_t zone, char *tex return list; } -GfxList *sciw_new_text_control(GfxPort *port, reg_t ID, rect_t zone, char *text, int font, +GfxList *sciw_new_text_control(GfxPort *port, reg_t ID, rect_t zone, const char *text, int font, gfx_alignment_t align, char framed, char inverse) { GfxList *list = gfxw_new_list(_move_and_extend_rect(zone, Common::Point(port->zone.x, port->zone.y), 2), 0); @@ -344,7 +344,7 @@ GfxList *sciw_new_text_control(GfxPort *port, reg_t ID, rect_t zone, char *text, return _sciw_add_text_to_list(list, port, zone, text, font, align, framed, inverse, 0, port->gray_text); } -GfxList *sciw_new_edit_control(GfxPort *port, reg_t ID, rect_t zone, char *text, int font, unsigned int cursor, +GfxList *sciw_new_edit_control(GfxPort *port, reg_t ID, rect_t zone, const char *text, int font, unsigned int cursor, char inverse) { GfxText *text_handle; @@ -440,7 +440,7 @@ GfxList *sciw_new_icon_control(GfxPort *port, reg_t ID, rect_t zone, int view, i return list; } -GfxList *sciw_new_list_control(GfxPort *port, reg_t ID, rect_t zone, int font_nr, char **entries_list, +GfxList *sciw_new_list_control(GfxPort *port, reg_t ID, rect_t zone, int font_nr, const char **entries_list, int entries_nr, int list_top, int selection, char inverse) { GfxList *list; diff --git a/engines/sci/gfx/gfx_gui.h b/engines/sci/gfx/gfx_gui.h index a13c4c4fa4..68342aa0c0 100644 --- a/engines/sci/gfx/gfx_gui.h +++ b/engines/sci/gfx/gfx_gui.h @@ -113,7 +113,7 @@ GfxPort *sciw_new_window(EngineState *s, rect_t area, int font, * @return The button */ GfxList *sciw_new_button_control(GfxPort *port, reg_t ID, rect_t zone, - char *text, int font, char selected, char inverse, char gray); + const char *text, int font, char selected, char inverse, char gray); /** * Creates a new text control list. @@ -129,7 +129,7 @@ GfxList *sciw_new_button_control(GfxPort *port, reg_t ID, rect_t zone, * @return The text control widget list */ GfxList *sciw_new_text_control(GfxPort *port, reg_t ID, rect_t zone, - char *text, int font, gfx_alignment_t align, char frame, + const char *text, int font, gfx_alignment_t align, char frame, char inverse); /** @@ -145,7 +145,7 @@ GfxList *sciw_new_text_control(GfxPort *port, reg_t ID, rect_t zone, * @return An appropriate widget list */ GfxList *sciw_new_edit_control(GfxPort *port, reg_t ID, rect_t zone, - char *text, int font, unsigned int cursor, char inverse); + const char *text, int font, unsigned int cursor, char inverse); /** * Creates a new icon control list. @@ -178,8 +178,8 @@ GfxList *sciw_new_icon_control(GfxPort *port, reg_t ID, rect_t zone, * @return An appropriate widget list */ GfxList *sciw_new_list_control(GfxPort *port, reg_t ID, rect_t zone, - int font_nr, char **entries_list, int entries_nr, int list_top, - int selection, char inverse); + int font_nr, const char **entries_list, int entries_nr, + int list_top, int selection, char inverse); /** @} */ /** @name Menubar widgets */ -- cgit v1.2.3