This commit fixes a performance issue on X11 systems in regards to drawing on an OpenGL surface in GTK/GDK.
This commit fixes a performance issue on X11 systems making use of the gdk_cairo_draw_from_gl() function in regards
to drawing on an OpenGL surface in GTK/GDK. Specifically, this fix removes the slow X11 codepath that was used when
executing the gdk_cairo_draw_from_gl() function because it was completely uneeded. I tested the before and after on
Flutter and GTK apps making use of the OpenGL rendering and can confirm that there is no behaviour and visual
difference. This change is also specific to drawings that make use of textures. The render buffer code path has
been left completely unmodified.
Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/4704
Origin: 3.24.39, commit:
7237f5d0eb5ec2f1411a28b9394ff4c4472f4d8b
Gbp-Pq: Name This-commit-fixes-a-performance-issue-on-X11-systems-in-r.patch
Fix a typo
1. According to the UTF-8 spec, ASCII character's charcode is from
0 to 127 inclusively.
2. Any charcode which is greater than or equal to 128 will be
a multi-byte character.
Origin: 3.24.39, commit:
1659cefde792f127f604f15ae12f17ede10f1c00
Gbp-Pq: Name Fix-a-typo.patch
Update Turkish translation
Origin: 3.24.39, commit:
379512c092dc2bc904ebd6aaa3b84d7234c31034
Gbp-Pq: Name Update-Turkish-translation.patch
Make sure that the charcode is signless
1. The data with type of char is signed by default.
2. The byte value of UTF-8 is signless by default.
3. So, if a UTF-8 charcode is stored in a char array, we should cast the
type of its value from char to unsigned char.
Origin: 3.24.39, commit:
6dc75b46cc9afe1c98b7ba72a9b1a275c723ea42
Gbp-Pq: Name Make-sure-that-the-charcode-is-signless.patch
Use correct stat struct for ftw()
check_dir_mtime() is called by ftw() and is given
the real stat struct, not its glib version (which may
or may not be the same as "struct stat").
This is irrelevant for MSVC (it has no ftw()) and
works correctly for MinGW-w64 (which declares stat
structures correctly). If mingw.org complains, add
a special ifdef for it later.
Origin: upstream, 3.24.39, commit:
7e17693cced0db855bfe0997f26633ca8bdd48cc
Gbp-Pq: Name Use-correct-stat-struct-for-ftw.patch