From d17454ac6af8b55169d3d7aefad498a133b9c0f9 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 16 Jan 2019 13:38:13 +0100 Subject: Correct typo in comment. --- src/Fl_cocoa.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index f8d84ef36..6ddc8b988 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -2175,7 +2175,7 @@ static FLTextInputContext* fltextinputcontext_instance = nil; All Quartz drawings go to this bitmap. displayLayer: finishes by using an image copy of the bitmap as the layer's contents. That step fills the window. When resized or when the window flips between low/high resolution displays, - FLViewLayer receives the viewFrameDidChange message which deletes the bitmap and zeros layer_data. + FLViewLayer receives the viewFrameDidChange message which deletes the bitmap and zeroes layer_data. This ensures the bitmap is recreated after the window was resized or changed resolution. Each layer-backed OpenGL window has an associated FLGLViewLayer object, derived from FLView. -- cgit v1.2.3