Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 032ea12

Browse files
committed
Use consistent TRUE/FALSE values
1 parent 7d226a8 commit 032ea12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

shell/platform/linux/fl_scrolling_manager.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ FlScrollingManager* fl_scrolling_manager_new(
5656
G_OBJECT(view_delegate),
5757
reinterpret_cast<gpointer*>(&(self->view_delegate)));
5858

59-
self->pan_started = false;
60-
self->zoom_started = false;
61-
self->rotate_started = false;
59+
self->pan_started = FALSE;
60+
self->zoom_started = FALSE;
61+
self->rotate_started = FALSE;
6262

6363
return self;
6464
}
@@ -150,7 +150,7 @@ void fl_scrolling_manager_handle_scroll_event(FlScrollingManager* self,
150150
void fl_scrolling_manager_handle_rotation_begin(FlScrollingManager* self) {
151151
g_return_if_fail(FL_IS_SCROLLING_MANAGER(self));
152152

153-
self->rotate_started = true;
153+
self->rotate_started = TRUE;
154154
if (!self->zoom_started) {
155155
self->scale = 1;
156156
self->rotation = 0;
@@ -173,7 +173,7 @@ void fl_scrolling_manager_handle_rotation_update(FlScrollingManager* self,
173173
void fl_scrolling_manager_handle_rotation_end(FlScrollingManager* self) {
174174
g_return_if_fail(FL_IS_SCROLLING_MANAGER(self));
175175

176-
self->rotate_started = false;
176+
self->rotate_started = FALSE;
177177
if (!self->zoom_started) {
178178
fl_scrolling_view_delegate_send_pointer_pan_zoom_event(
179179
self->view_delegate, g_get_real_time(), self->last_x, self->last_y,
@@ -184,7 +184,7 @@ void fl_scrolling_manager_handle_rotation_end(FlScrollingManager* self) {
184184
void fl_scrolling_manager_handle_zoom_begin(FlScrollingManager* self) {
185185
g_return_if_fail(FL_IS_SCROLLING_MANAGER(self));
186186

187-
self->zoom_started = true;
187+
self->zoom_started = TRUE;
188188
if (!self->rotate_started) {
189189
self->scale = 1;
190190
self->rotation = 0;
@@ -207,7 +207,7 @@ void fl_scrolling_manager_handle_zoom_update(FlScrollingManager* self,
207207
void fl_scrolling_manager_handle_zoom_end(FlScrollingManager* self) {
208208
g_return_if_fail(FL_IS_SCROLLING_MANAGER(self));
209209

210-
self->zoom_started = false;
210+
self->zoom_started = FALSE;
211211
if (!self->rotate_started) {
212212
fl_scrolling_view_delegate_send_pointer_pan_zoom_event(
213213
self->view_delegate, g_get_real_time(), self->last_x, self->last_y,

0 commit comments

Comments
 (0)