Usermode - Working on AxWin3 SubWin widget (also API change for SysSpawn)
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / renderers / richtext.c
index ecdb40e..eca5765 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <wm_renderer.h>
 #include <richtext_messages.h>
+#include <stdio.h>     // 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)

UCC git Repository :: git.ucc.asn.au