Renamed HWInterface::GetCursorPosition() to CursorPosition() to match
the usual style. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18595 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1105,7 +1105,7 @@ DrawingEngine::ReadBitmap(ServerBitmap *bitmap, bool drawCursor, BRect bounds)
|
|||||||
int32 cursorWidth = cursor->Width();
|
int32 cursorWidth = cursor->Width();
|
||||||
int32 cursorHeight = cursor->Height();
|
int32 cursorHeight = cursor->Height();
|
||||||
|
|
||||||
BPoint cursorPosition = fGraphicsCard->GetCursorPosition();
|
BPoint cursorPosition = fGraphicsCard->CursorPosition();
|
||||||
cursorPosition -= bounds.LeftTop() + cursor->GetHotSpot();
|
cursorPosition -= bounds.LeftTop() + cursor->GetHotSpot();
|
||||||
|
|
||||||
BBitmap cursorArea(BRect(0, 0, cursorWidth - 1, cursorHeight - 1),
|
BBitmap cursorArea(BRect(0, 0, cursorWidth - 1, cursorHeight - 1),
|
||||||
|
|||||||
@@ -199,9 +199,9 @@ HWInterface::MoveCursorTo(const float& x, const float& y)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetCursorPosition
|
|
||||||
BPoint
|
BPoint
|
||||||
HWInterface::GetCursorPosition()
|
HWInterface::CursorPosition()
|
||||||
{
|
{
|
||||||
BPoint location;
|
BPoint location;
|
||||||
if (ReadLock()) {
|
if (ReadLock()) {
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class HWInterface : public MultiLocker {
|
|||||||
virtual void ObscureCursor();
|
virtual void ObscureCursor();
|
||||||
virtual void MoveCursorTo(const float& x,
|
virtual void MoveCursorTo(const float& x,
|
||||||
const float& y);
|
const float& y);
|
||||||
BPoint GetCursorPosition();
|
BPoint CursorPosition();
|
||||||
|
|
||||||
void SetDragBitmap(const ServerBitmap* bitmap,
|
void SetDragBitmap(const ServerBitmap* bitmap,
|
||||||
const BPoint& offsetFromCursor);
|
const BPoint& offsetFromCursor);
|
||||||
|
|||||||
Reference in New Issue
Block a user