Commit e33286cf authored by ROOL's avatar ROOL 🤖

Build fix

Detail:
  Add missing function draw_create_diag() to the ROM version of RISC_OSLib, required by Paint-2_24 and later.
  To keep ROM footprint to a minimum, export only that function; this also avoids adding static workspace and needing to increase RlibSpace.
parent 6982f5cc
......@@ -349,6 +349,7 @@ ROM_OBJS =\
rm_o_rl.dboxquery \
rm_o_rl.dboxtcol \
rm_o_rl.dragasprit \
rm_o_rl.drawfobj \
rm_o_rl.drawmod \
rm_o_rl.event \
rm_o_rl.fileicon \
......
......@@ -53,6 +53,7 @@
#include "DrawIntern/drawfile2.h"
#include "drawferror.h"
#ifndef UROM
/*----------------------------- Global data ---------------------------------*/
/* Current mode state */
......@@ -226,6 +227,7 @@ static void dr_translateText(draw_diag *diag, int * transTable)
}
}
}
#endif
/*------------------------------ Interface functions ---------------------------*/
......@@ -262,6 +264,7 @@ void draw_create_diag(draw_diag *diag, char *creator, draw_box bbox)
diag->length = sizeof(draw_fileheader);
}
#ifndef UROM
/*
Function : draw_doObjects
Purpose : render a range of objects
......@@ -595,3 +598,4 @@ BOOL drawfobj_init(void)
&& drawtextc_init()
&& drawfiles_init());
}
#endif
......@@ -34,6 +34,7 @@ rm_o_rl.dboxfile
rm_o_rl.dboxquery
rm_o_rl.dboxtcol
rm_o_rl.dragasprit
rm_o_rl.drawfobj
rm_o_rl.drawmod
rm_o_rl.event
rm_o_rl.fileicon
......
......@@ -583,5 +583,6 @@
Entry xfersend_pipe, imported, , , ,
Entry xferrecv_last_ref, imported, , , ,
Entry wimp_autoscroll, imported, , , ,
Entry draw_create_diag, imported, , , ,
; __va_illegal_arg 0
END
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment