Skip to content

Commit e505b75

Browse files
committed
remove setAlpha
1 parent 97b3e66 commit e505b75

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

Client/gui/CGUI_Impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ bool CGUI_Impl::IsCursorEnabled()
496496

497497
void CGUI_Impl::SetCursorAlpha(float fAlpha, bool bOnlyCurrentServer)
498498
{
499-
CEGUI::MouseCursor::getSingleton().setAlpha(m_fCurrentServerCursorRed, m_fCurrentServerCursorGreen, m_fCurrentServerCursorBlue, fAlpha);
499+
CEGUI::MouseCursor::getSingleton().setColor(m_fCurrentServerCursorRed, m_fCurrentServerCursorGreen, m_fCurrentServerCursorBlue, fAlpha);
500500

501501
if (bOnlyCurrentServer)
502502
SetCurrentServerCursorAlpha(fAlpha);

vendor/cegui-0.4.0-custom/include/CEGUIMouseCursor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class CEGUIEXPORT MouseCursor : public EventSet, public Singleton<MouseCursor>
187187
\return
188188
Nothing.
189189
*/
190-
void setAlpha(float r, float g, float b, float alpha) noexcept;
190+
191191
void setColor(float r, float g, float b, float alpha) noexcept;
192192

193193
/*!

vendor/cegui-0.4.0-custom/src/CEGUIMouseCursor.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,6 @@ void MouseCursor::offsetPosition(const Point& offset)
146146
}
147147

148148

149-
/*************************************************************************
150-
Set the mouse cursor's alpha
151-
*************************************************************************/
152-
void MouseCursor::setAlpha(float r, float g, float b, float alpha) noexcept
153-
{
154-
d_colourRect.setColours(colour(r/255.f, g/255.f, b/255.f, alpha));
155-
}
156-
157149
/*************************************************************************
158150
Set the mouse cursor's color
159151
*************************************************************************/

0 commit comments

Comments
 (0)