From 434ea41aa400557964d73867008cfa8b1f64d8c4 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 20 Mar 2021 16:25:35 +1100 Subject: Use Surface::AllocatePixMap instead of changing an existing surface with InitPixMap. Changed DropGraphics from releasing surfaces to deleting them. This simplifies code and the added cost of allocating a new Surface is small. --- gtk/ScintillaGTK.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index e0ec61245..50e46ecc8 100755 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -368,7 +368,7 @@ void ScintillaGTK::UnMapThis() { try { //Platform::DebugPrintf("ScintillaGTK::unmap this\n"); gtk_widget_set_mapped(PWidget(wMain), FALSE); - DropGraphics(false); + DropGraphics(); gdk_window_hide(PWindow(wMain)); gtk_widget_unmap(PWidget(wText)); if (PWidget(scrollbarh)) -- cgit v1.2.3