Menu

#8 xpaint-3.0.3 patches for Fedora 40 gcc 14

Unstable (example)
open
nobody
None
5
2024-08-02
2024-08-02
No

In main.c, appInfo.btnheight ends up 4, which messes up the display and causes a later calculation in graphic.c to crash X with a negative width in XCreatePixmap. If the height is small, this patch bumps it to 32, which works for my laptop. My laptop has Fedora 40, Mate Desktop, and a 4k display, so the 32 might not work for everyone, but the 4 is bad because no readable font is only 4 pixels high. This started happening recently, so it might be a bug in a recent Fedora update.

In graphic.c, I check that LINESTYLE_WIDTH is reasonable. It was coming out negative.

menu.c needs to include unistd.h to use usleep().

readRC.c has a line info->colors = XtNew(char ** ) but the argument should have just one star because XtNew is a macro that adds a star in the cast of its return value.

I have attached patches.

1 Attachments

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.