Compare commits

...

2 Commits

2 changed files with 6 additions and 0 deletions

View File

@ -191,12 +191,14 @@ fiv_io_image_new(cairo_format_t format, uint32_t width, uint32_t height)
case CAIRO_FORMAT_ARGB32:
unit = 4;
break;
#if CAIRO_VERSION >= 11702
case CAIRO_FORMAT_RGB96F:
unit = 12;
break;
case CAIRO_FORMAT_RGBA128F:
unit = 16;
break;
#endif
default:
return NULL;
}

4
fiv.c
View File

@ -604,6 +604,10 @@ show_preferences(GtkWidget *parent)
int row = 0;
gchar **keys = g_settings_schema_list_keys(schema);
for (gchar **p = keys; *p; p++) {
#ifndef GDK_WINDOWING_X11
if (g_str_equal(*p, "native-view-window"))
continue;
#endif
GSettingsSchemaKey *key = g_settings_schema_get_key(schema, *p);
preferences_make_row(grid, &row, settings, key);
g_settings_schema_key_unref(key);