|
|
commit 1c37c29e2d7771fa265774d345b2f5ed6ce752bc
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Thu May 19 10:28:39 2022 +0200
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Thu May 19 10:28:39 2022 +0200
Avoid "hides overloaded function" warning messages.
src/drivers/Wayland/Fl_Wayland_Screen_Driver.H | 2 +-
src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git src/drivers/Wayland/Fl_Wayland_Screen_Driver.H src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
index 71c30e3..6af144f 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
+++ src/drivers/Wayland/Fl_Wayland_Screen_Driver.H
@@ -67,7 +67,7 @@ public:
static void insertion_point_location(int x, int y, int height);
static bool insertion_point_location(int *px, int *py, int *pwidth, int *pheight);
int get_mouse_unscaled(int &xx, int &yy);
- void screen_count(int count) {num_screens = count;}
+ void screen_count_set(int count) {num_screens = count;}
void reset_cursor();
struct wl_cursor *xc_arrow;
diff --git src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
index efa8779..e7622d6 100644
--- src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
+++ src/drivers/Wayland/Fl_Wayland_Screen_Driver.cxx
@@ -997,7 +997,7 @@ static void registry_handle_global(void *user_data, struct wl_registry *wl_regis
wl_proxy_set_tag((struct wl_proxy *) output->wl_output, &proxy_tag);
wl_output_add_listener(output->wl_output, &output_listener, output);
wl_list_insert(&(scr_driver->outputs), &output->link);
- scr_driver->screen_count( wl_list_length(&(scr_driver->outputs)) );
+ scr_driver->screen_count_set( wl_list_length(&(scr_driver->outputs)) );
//fprintf(stderr, "wl_output: id=%d wl_output=%p screen_count()=%d\n", id, output->wl_output, Fl::screen_count());
} else if (strcmp(interface, xdg_wm_base_interface.name) == 0) {
@@ -1041,7 +1041,7 @@ static void registry_handle_global_remove(void *data, struct wl_registry *regist
xp = xp->next;
}
wl_list_remove(&output->link);
- scr_driver->screen_count( wl_list_length(&(scr_driver->outputs)) );
+ scr_driver->screen_count_set( wl_list_length(&(scr_driver->outputs)) );
wl_output_destroy(output->wl_output);
free(output);
break;
[ Direct Link to Message ] | |
|
| |