mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-09 07:13:43 -05:00
GTK: make inst->pixmap and inst->surface mutually exclusive
This removes the case where we draw into a Cairo surface and then copy the results into a GdkPixmap. Now, if we've got a GdkPixmap, we just draw into it directly using Cairo. This vastly reduces the number of CopyArea operations needed to draw on the screen.
This commit is contained in:
@ -40,8 +40,10 @@
|
||||
* 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.
|
||||
* For preference, we use a GdkPixmap for this, because both GDK and
|
||||
* Cairo can draw to one of those. If those aren't available, then we
|
||||
* instead create a Cairo surface that we hope will be backed by an X
|
||||
* Pixmap.
|
||||
*/
|
||||
#define NO_BACKING_PIXMAPS
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user