mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
Make the use of server-side backing pixmaps in GTK optional.
We won't be able to use them in GTK3, or when compiling with GTK2 and -DGDK_DISABLE_DEPRECATED. This applies to the one we use for the main terminal window, and also the small one we use for the preview pane in the unified font selector.
This commit is contained in:
@ -29,6 +29,23 @@
|
||||
#define DRAW_TEXT_CAIRO
|
||||
#endif
|
||||
|
||||
#if GTK_CHECK_VERSION(3,0,0) || defined GDK_DISABLE_DEPRECATED
|
||||
/*
|
||||
* Where the facility is available, we prefer to render text on to a
|
||||
* persistent server-side pixmap, and redraw windows by simply
|
||||
* blitting rectangles of that pixmap into them as needed. This is
|
||||
* better for performance since we avoid expensive font rendering
|
||||
* calls where possible, and it's particularly good over a non-local X
|
||||
* connection because the response to an expose event can now be a
|
||||
* very simple rectangle-copy operation rather than a lot of fiddly
|
||||
* drawing or bitmap transfer.
|
||||
*
|
||||
* However, GTK is deprecating the use of server-side pixmaps, so we
|
||||
* have to disable this mode under some circumstances.
|
||||
*/
|
||||
#define NO_BACKING_PIXMAPS
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Exports from gtkfont.c.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user