1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

supports_tiff moved to wPreferences

The flag "supports_tiff" doesn't belong to the wScreen, because all
screens has (or not) the same value. If wmaker supports (or not) tiff
files is global to all wmaker, not to the screens.
This commit is contained in:
Rodolfo García Peñas (kix)
2013-09-05 21:08:16 +02:00
committed by Carlos R. Mafra
parent 82aea844d0
commit 4e4d75c55e
5 changed files with 15 additions and 21 deletions

View File

@@ -478,7 +478,8 @@ static char *atomNames[] = {
void StartUp(Bool defaultScreenOnly)
{
struct sigaction sig_action;
int j, max;
int i, j, max;
char **formats;
#ifdef HAVE_XRANDR
int dummy;
#endif
@@ -690,6 +691,17 @@ void StartUp(Bool defaultScreenOnly)
wScreenCount = 0;
/* Check if TIFF images are supported */
formats = RSupportedFileFormats();
if (formats) {
for (i = 0; formats[i] != NULL; i++) {
if (strcmp(formats[i], "TIFF") == 0) {
wPreferences.supports_tiff = 1;
break;
}
}
}
/* manage the screens */
for (j = 0; j < max; j++) {
if (defaultScreenOnly || max == 1) {