diff options
| author | Matthias Melcher <git@matthiasm.com> | 2019-01-17 21:30:16 +0100 |
|---|---|---|
| committer | Matthias Melcher <git@matthiasm.com> | 2019-01-17 21:30:16 +0100 |
| commit | 6bc3fa37681563882a03ec9b0eaf821d82c10964 (patch) | |
| tree | 8d70ff1d3bef367ae67efbdf6e41d69f8fd55d7e /src | |
| parent | 2f0e45e7a7110761080e2540c95a9fc94f162f81 (diff) | |
| parent | 78510a831d89c7985eb2894f96fcebd388e21856 (diff) | |
Merge branch 'master' of https://github.com/fltk/fltk into Android
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 1 insertions, 1 deletions
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. |
