diff --git a/src/driver/fb_generic.cpp b/src/driver/fb_generic.cpp index 3d1c4abec..767776db5 100644 --- a/src/driver/fb_generic.cpp +++ b/src/driver/fb_generic.cpp @@ -1929,7 +1929,7 @@ void CFrameBuffer::setFbArea(int element, int _x, int _y, int _dx, int _dy) } } -int CFrameBuffer::checkFbAreaElement(int _x, int _y, int _dx, int _dy, fb_area_t *area) +int CFrameBuffer::checkFbAreaElement(const int& _x, const int& _y, const int& _dx, const int& _dy, const fb_area_t *area) { if (fb_no_check) return FB_PAINTAREA_MATCH_NO; @@ -1945,7 +1945,7 @@ int CFrameBuffer::checkFbAreaElement(int _x, int _y, int _dx, int _dy, fb_area_t return FB_PAINTAREA_MATCH_OK; } -bool CFrameBuffer::_checkFbArea(int _x, int _y, int _dx, int _dy, bool prev) +bool CFrameBuffer::_checkFbArea(const int& _x, const int& _y, const int& _dx, const int& _dy, const bool& prev) { if (v_fbarea.empty()) return true; diff --git a/src/driver/fb_generic.h b/src/driver/fb_generic.h index f2b03a0c4..6b6e8820e 100644 --- a/src/driver/fb_generic.h +++ b/src/driver/fb_generic.h @@ -329,8 +329,8 @@ class CFrameBuffer : public sigc::trackable v_fbarea_t v_fbarea; bool do_paint_mute_icon; - bool _checkFbArea(int _x, int _y, int _dx, int _dy, bool prev); - int checkFbAreaElement(int _x, int _y, int _dx, int _dy, fb_area_t *area); + bool _checkFbArea(const int& _x, const int& _y, const int& _dx, const int& _dy, const bool& prev); + int checkFbAreaElement(const int& _x, const int& _y, const int& _dx, const int& _dy, const fb_area_t *area); public: enum { @@ -341,7 +341,7 @@ class CFrameBuffer : public sigc::trackable FB_PAINTAREA_MAX }; - inline bool checkFbArea(int _x, int _y, int _dx, int _dy, bool prev) { return (fbAreaActiv && !fb_no_check) ? _checkFbArea(_x, _y, _dx, _dy, prev) : true; } + inline bool checkFbArea(const int& _x, const int& _y, const int& _dx, const int& _dy, const bool& prev) { return (fbAreaActiv && !fb_no_check) ? _checkFbArea(_x, _y, _dx, _dy, prev) : true; } void setFbArea(int element, int _x=0, int _y=0, int _dx=0, int _dy=0); void fbNoCheck(bool noCheck) { fb_no_check = noCheck; } void doPaintMuteIcon(bool mode) { do_paint_mute_icon = mode; }