Differences From Artifact [d874b359ff]:
- File unix/gtkwin.c — part of check-in [6389889576] at 2013-01-13 15:59:10 on branch trunk — Reorganise setup_fonts_ucs so that in case of error it does nothing and returns its error message as a string, instead of actually printing it on standard error and exiting. Now we can preserve the previous error behaviour when we get a nonexistent font name at startup time, but no longer rudely terminate in mid-session if the user configures a bogus font name in Change Settings. (user: simon size: 115208)
To Artifact [9b51ddc4ed]:
- File unix/gtkwin.c — part of check-in [8962699297] at 2013-07-01 12:56:33 on branch trunk — A collection of small bug fixes from Chris West, apparently spotted by Coverity: assorted language-use goofs like freeing the wrong thing or forgetting to initialise a string on all code paths. (user: simon size: 115209)
| ︙ | |||
1593 1594 1595 1596 1597 1598 1599 | 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 | - + |
}
void palette_set(void *frontend, int n, int r, int g, int b)
{
struct gui_data *inst = (struct gui_data *)frontend;
if (n >= 16)
n += 256 - 16;
|
| ︙ |