From 7223f46933883394c41b6d76f6cc7ea9845ddc0a Mon Sep 17 00:00:00 2001 From: gambas Date: Thu, 27 Jan 2022 01:54:10 +0100 Subject: [PATCH] DrawingArea: Replace some 'bool' by one-bit integers in widget implementation. [GB.QT4] * OPT: DrawingArea: Replace some 'bool' by one-bit integers in widget implementation. [GB.QT5] * OPT: DrawingArea: Replace some 'bool' by one-bit integers in widget implementation. --- gb.qt4/src/CDrawingArea.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gb.qt4/src/CDrawingArea.h b/gb.qt4/src/CDrawingArea.h index 34ad10585..a85d6ccc0 100644 --- a/gb.qt4/src/CDrawingArea.h +++ b/gb.qt4/src/CDrawingArea.h @@ -127,14 +127,14 @@ private: Qt::HANDLE _background; #endif int _background_w, _background_h; - bool _frozen; - bool _merge; - bool _focus; + unsigned _frozen : 1; + unsigned _merge : 1; + unsigned _focus : 1; + unsigned _set_background : 1; + unsigned _cached : 1; + unsigned _no_background : 1; + unsigned _in_draw_event : 1; int _event_mask; - bool _set_background; - bool _cached; - bool _no_background; - bool _in_draw_event; int _draw_event; static int _in_any_draw_event; };