X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Frenderers%2Frichtext.c;h=eca5765bad4a842ebc4d91eb085cb8595ce51b1c;hb=507f19941f45bca7c1de783a394f56b15f10be4d;hp=ecdb40e94c594bbbe63f981da6a3d4cab320c859;hpb=a897ce08ed162eff3e06db533c490c4dd5b23e54;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c index ecdb40e9..eca5765b 100644 --- a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c +++ b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c @@ -8,6 +8,7 @@ #include #include #include +#include // sscanf #define LINES_PER_BLOCK 30 @@ -63,7 +64,7 @@ tWindow *Renderer_RichText_Create(int Flags) return ret; } -inline int Renderer_RichText_RenderText_Act(tWindow *Window, tRichText_Window *info, int X, int Row, const char *Text, int Bytes, tColour FG, tColour BG) +static inline int Renderer_RichText_RenderText_Act(tWindow *Window, tRichText_Window *info, int X, int Row, const char *Text, int Bytes, tColour FG, tColour BG) { int rwidth; // TODO: Fill only what is needed @@ -104,7 +105,8 @@ void Renderer_RichText_RenderText(tWindow *Window, int Line, const char *Text) if( ch == 0 ) break; if( ch <=3 && bRender ) { // Render previous characters - curx += Renderer_RichText_RenderText_Act(Window, info, curx, Line, oldtext, Text - oldtext, fg, bg); + curx += Renderer_RichText_RenderText_Act(Window, info, curx, Line, + oldtext, Text - oldtext, fg, bg); oldtext = Text; } switch(ch)