Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c8ec4f2

Browse files
committed
use the new function signature too
1 parent f2e2ad0 commit c8ec4f2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/devel/color-dfhack-text.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ bool color_text_tile(const Screen::Pen &pen, int x, int y, bool map, int32_t * d
3939
pen2.bg = color;
4040
pen2.bold = true;
4141
}
42-
return color_text_hook.next()(pen2, x, y, map);
42+
return color_text_hook.next()(pen2, x, y, map, texpos_field);
4343
}
4444

4545
bool aaaaa_set_tile(const Screen::Pen &pen, int x, int y, bool map, int32_t * df::graphic_viewportst::*texpos_field);
@@ -51,15 +51,15 @@ bool aaaaa_set_tile(const Screen::Pen &pen, int x, int y, bool map, int32_t * df
5151
pen2.ch = 'A';
5252
else if (pen.ch >= 'a' && pen.ch <= 'z')
5353
pen2.ch = 'a';
54-
return aaaaa_set_tile_hook.next()(pen2, x, y, map);
54+
return aaaaa_set_tile_hook.next()(pen2, x, y, map, texpos_field);
5555
}
5656

5757
bool shift_set_tile(const Screen::Pen &pen, int x, int y, bool map, int32_t * df::graphic_viewportst::*texpos_field);
5858
GUI_HOOK_CALLBACK(Screen::Hooks::set_tile, shift_set_tile_hook, shift_set_tile);
5959
bool shift_set_tile(const Screen::Pen &pen, int x, int y, bool map, int32_t * df::graphic_viewportst::*texpos_field = NULL)
6060
{
6161
x = (x + 1) % gps->dimx;
62-
return shift_set_tile_hook.next()(pen, x, y, map);
62+
return shift_set_tile_hook.next()(pen, x, y, map, texpos_field);
6363
}
6464

6565
DFhackCExport command_result plugin_enable (color_ostream &out, bool enable)

0 commit comments

Comments
 (0)