Cleanup: correct the comment in ghost
The same comments were written in clientToScreen and screenToClient in GHOST. I corrected them. Ref D11986
This commit is contained in:

committed by
Campbell Barton

parent
3cfd6439c6
commit
22bef356ae
@@ -628,7 +628,7 @@ extern void GHOST_ScreenToClient(
|
|||||||
GHOST_WindowHandle windowhandle, int32_t inX, int32_t inY, int32_t *outX, int32_t *outY);
|
GHOST_WindowHandle windowhandle, int32_t inX, int32_t inY, int32_t *outX, int32_t *outY);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates
|
* Converts a point in client rectangle coordinates to screen coordinates.
|
||||||
* \param windowhandle: The handle to the window.
|
* \param windowhandle: The handle to the window.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate in the client rectangle.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate in the client rectangle.
|
||||||
|
@@ -133,7 +133,7 @@ class GHOST_IWindow {
|
|||||||
virtual void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const = 0;
|
virtual void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates
|
* Converts a point in client rectangle coordinates to screen coordinates.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate in the client rectangle.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate in the client rectangle.
|
||||||
* \param outX: The x-coordinate on the screen.
|
* \param outX: The x-coordinate on the screen.
|
||||||
|
@@ -157,7 +157,7 @@ class GHOST_WindowCocoa : public GHOST_Window {
|
|||||||
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates
|
* Converts a point in client rectangle coordinates to screen coordinates.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate in the client rectangle.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate in the client rectangle.
|
||||||
* \param outX: The x-coordinate on the screen.
|
* \param outX: The x-coordinate on the screen.
|
||||||
@@ -166,7 +166,7 @@ class GHOST_WindowCocoa : public GHOST_Window {
|
|||||||
void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates
|
* Converts a point in client rectangle coordinates to screen coordinates.
|
||||||
* but without the y coordinate conversion needed for ghost compatibility.
|
* but without the y coordinate conversion needed for ghost compatibility.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate in the client rectangle.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate in the client rectangle.
|
||||||
@@ -178,10 +178,10 @@ class GHOST_WindowCocoa : public GHOST_Window {
|
|||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates,
|
* Converts a point in screen coordinates to client rectangle coordinates,
|
||||||
* but without the y coordinate conversion needed for ghost compatibility.
|
* but without the y coordinate conversion needed for ghost compatibility.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate on the screen.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate on the screen.
|
||||||
* \param outX: The x-coordinate on the screen.
|
* \param outX: The x-coordinate in the client rectangle.
|
||||||
* \param outY: The y-coordinate on the screen.
|
* \param outY: The y-coordinate in the client rectangle.
|
||||||
*/
|
*/
|
||||||
void screenToClientIntern(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
void screenToClientIntern(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
||||||
|
|
||||||
|
@@ -183,7 +183,7 @@ class GHOST_WindowWin32 : public GHOST_Window {
|
|||||||
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Converts a point in screen coordinates to client rectangle coordinates
|
* Converts a point in client rectangle coordinates to screen coordinates.
|
||||||
* \param inX: The x-coordinate in the client rectangle.
|
* \param inX: The x-coordinate in the client rectangle.
|
||||||
* \param inY: The y-coordinate in the client rectangle.
|
* \param inY: The y-coordinate in the client rectangle.
|
||||||
* \param outX: The x-coordinate on the screen.
|
* \param outX: The x-coordinate on the screen.
|
||||||
|
Reference in New Issue
Block a user