diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-15 02:40:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-15 02:40:42 +0300 |
commit | 7d90ff08f3f3d4d66c5357b2e9bf00755ca5178f (patch) | |
tree | f296a7f796fce0554c7b67d81d4cbd39c598397b | |
parent | b2df29e50d958424e02d6d7fc6a5144b0923b9f0 (diff) |
Fix incorrect enum in GHOST test
-rw-r--r-- | intern/ghost/test/multitest/EventToBuf.c | 2 | ||||
-rw-r--r-- | intern/ghost/test/multitest/MultiTest.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/intern/ghost/test/multitest/EventToBuf.c b/intern/ghost/test/multitest/EventToBuf.c index 5aee8a50a8d..57fb950fa8b 100644 --- a/intern/ghost/test/multitest/EventToBuf.c +++ b/intern/ghost/test/multitest/EventToBuf.c @@ -41,7 +41,7 @@ char *eventtype_to_string(GHOST_TEventType type) case GHOST_kEventKeyUp: return "KeyUp"; - case GHOST_kEventQuit: + case GHOST_kEventQuitRequest: return "Quit"; case GHOST_kEventWindowClose: diff --git a/intern/ghost/test/multitest/MultiTest.c b/intern/ghost/test/multitest/MultiTest.c index 5c8d3527869..21d706966c1 100644 --- a/intern/ghost/test/multitest/MultiTest.c +++ b/intern/ghost/test/multitest/MultiTest.c @@ -736,7 +736,7 @@ static void extrawindow_spin_cursor(ExtraWindow *ew, GHOST_TUns64 time) mask[y][x / 8] |= (1 << (x % 8)); } - GHOST_SetCustomCursorShape(ew->win, bitmap, mask, 16, 16, 0, 0, true); + GHOST_SetCustomCursorShape(ew->win, &bitmap[0][0], &mask[0][0], 16, 16, 0, 0, true); } static void extrawindow_handle(void *priv, GHOST_EventHandle evt) @@ -850,7 +850,7 @@ static int multitest_event_handler(GHOST_EventHandle evt, GHOST_TUserDataPtr dat * that is, events without a window. */ switch (type) { - case GHOST_kEventQuit: + case GHOST_kEventQuitRequest: app->exit = 1; break; |