mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-22 22:28:02 +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:
committed by
Carlos R. Mafra
parent
82aea844d0
commit
4e4d75c55e
18
src/screen.c
18
src/screen.c
@@ -601,24 +601,6 @@ WScreen *wScreenInit(int screen_number)
|
||||
scr->rcontext = RCreateContext(dpy, screen_number, &rattr);
|
||||
}
|
||||
|
||||
if (!scr->rcontext) {
|
||||
wwarning(_("could not initialize graphics library context: %s"), RMessageForError(RErrorCode));
|
||||
wAbort(False);
|
||||
} else {
|
||||
char **formats;
|
||||
int i = 0;
|
||||
|
||||
formats = RSupportedFileFormats();
|
||||
if (formats) {
|
||||
for (i = 0; formats[i] != NULL; i++) {
|
||||
if (strcmp(formats[i], "TIFF") == 0) {
|
||||
scr->flags.supports_tiff = 1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
scr->w_win = scr->rcontext->drawable;
|
||||
scr->w_visual = scr->rcontext->visual;
|
||||
scr->w_depth = scr->rcontext->depth;
|
||||
|
||||
Reference in New Issue
Block a user