Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Rishel <nicholas_rishel>2021-07-05 20:10:20 +0300
committerNicholas Rishel <rishel.nick@gmail.com>2021-07-05 20:10:20 +0300
commita5ab9062cbfecc220e232f315784fbb386c33f77 (patch)
treeb12a20bcb4ac1d1da528c889c09f1abc26ea68fc /intern/ghost/intern/GHOST_WindowNULL.h
parentb73dc36859e03845f702a3e985b536ac9afef63a (diff)
Replace Ghost integral types with standard fixed width integers.fixed_width_integers
Also replace integer with bool in Ghost API when only used as boolean, and replace uint8* with char* in Ghost API when variable is a string. Reviewed By: brecht Differential Revision: https://developer.blender.org/D11617
Diffstat (limited to 'intern/ghost/intern/GHOST_WindowNULL.h')
-rw-r--r--intern/ghost/intern/GHOST_WindowNULL.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/intern/ghost/intern/GHOST_WindowNULL.h b/intern/ghost/intern/GHOST_WindowNULL.h
index aca06ba75b5..a3f9e2f0a13 100644
--- a/intern/ghost/intern/GHOST_WindowNULL.h
+++ b/intern/ghost/intern/GHOST_WindowNULL.h
@@ -36,10 +36,10 @@ class GHOST_WindowNULL : public GHOST_Window {
GHOST_WindowNULL(GHOST_SystemNULL *system,
const char *title,
- GHOST_TInt32 left,
- GHOST_TInt32 top,
- GHOST_TUns32 width,
- GHOST_TUns32 height,
+ int32_t left,
+ int32_t top,
+ uint32_t width,
+ uint32_t height,
GHOST_TWindowState state,
const GHOST_IWindow *parentWindow,
GHOST_TDrawingContextType type,
@@ -66,8 +66,8 @@ class GHOST_WindowNULL : public GHOST_Window {
{
return GHOST_kSuccess;
}
- GHOST_TSuccess setWindowCustomCursorShape(GHOST_TUns8 *bitmap,
- GHOST_TUns8 *mask,
+ GHOST_TSuccess setWindowCustomCursorShape(uint8_t *bitmap,
+ uint8_t *mask,
int sizex,
int sizey,
int hotX,
@@ -95,30 +95,24 @@ class GHOST_WindowNULL : public GHOST_Window {
void getClientBounds(GHOST_Rect &bounds) const
{ /* nothing */
}
- GHOST_TSuccess setClientWidth(GHOST_TUns32 width)
+ GHOST_TSuccess setClientWidth(uint32_t width)
{
return GHOST_kFailure;
}
- GHOST_TSuccess setClientHeight(GHOST_TUns32 height)
+ GHOST_TSuccess setClientHeight(uint32_t height)
{
return GHOST_kFailure;
}
- GHOST_TSuccess setClientSize(GHOST_TUns32 width, GHOST_TUns32 height)
+ GHOST_TSuccess setClientSize(uint32_t width, uint32_t height)
{
return GHOST_kFailure;
}
- void screenToClient(GHOST_TInt32 inX,
- GHOST_TInt32 inY,
- GHOST_TInt32 &outX,
- GHOST_TInt32 &outY) const
+ void screenToClient(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
{
outX = inX;
outY = inY;
}
- void clientToScreen(GHOST_TInt32 inX,
- GHOST_TInt32 inY,
- GHOST_TInt32 &outX,
- GHOST_TInt32 &outY) const
+ void clientToScreen(int32_t inX, int32_t inY, int32_t &outX, int32_t &outY) const
{
outX = inX;
outY = inY;