ports/graphics/xpaint/files/patch-main.c
Nuno Teixeira 973a707c70 graphics/xpaint: Update to 3.1.4
- Switch to DISTVERSION
- Define LICENSE_FILE
- Use autoreconf as workaround to fix build (not needed in <= 3.1.3)
- Put most SED commands in patches
- Comment patches about what they doing
- Port uses USES=jpeg and not openjpeg* (at the moment)
- Take maintainership

ChangeLog: https://sourceforge.net/projects/sf-xpaint/files/sf-xpaint/
2023-07-14 10:58:13 +01:00

23 lines
1.3 KiB
C

The XtGetApplicationResources() function uses the 'resources' array instead
of the 'options' array to obtain resources.
--- main.c.orig 2020-09-03 07:06:19 UTC
+++ main.c
@@ -146,7 +146,7 @@ static XtResource resources[] =
{"winsize", "WinSize", XtRString, sizeof(String),
XtOffset(AppInfo *, winsize), XtRImmediate, (XtPointer) "0x0"},
{"shareDir", "ShareDir", XtRString, sizeof(String),
- XtOffset(AppInfo *, shareDir), XtRImmediate, (XtPointer) NULL},
+ XtOffset(AppInfo *, shareDir), XtRImmediate, (XtPointer) SHAREDIR},
{"rcFile", "RcFile", XtRString, sizeof(String),
XtOffset(AppInfo *, rcFile), XtRImmediate, (XtPointer) NULL},
{"help", "Help", XtRString, sizeof(String),
@@ -206,7 +206,7 @@ static XrmOptionDescRec options[] =
{"-hilitcolor", ".hilitcolor", XrmoptionSepArg, (XtPointer) NULL},
{"-canvassize", ".canvassize", XrmoptionSepArg, (XtPointer) NULL},
{"-winsize", ".winsize", XrmoptionSepArg, (XtPointer) "0x0"},
- {"-sharedir", ".shareDir", XrmoptionSepArg, (XtPointer) SHAREDIR},
+ {"-sharedir", ".shareDir", XrmoptionSepArg, (XtPointer) NULL},
{"-rcfile", ".rcFile", XrmoptionSepArg, (XtPointer) NULL},
{"-helpfile", ".helpFile", XrmoptionSepArg, (XtPointer) NULL},
{"-msgfile", ".msgFile", XrmoptionSepArg, (XtPointer) NULL},