From fd5239fa82143f8b2236bb22a332ca9a16253dd0 Mon Sep 17 00:00:00 2001 From: vurtun Date: Tue, 2 Aug 2016 21:22:15 +0200 Subject: [PATCH] Fixed copy and paste error in gdi/gdip demos --- demo/gdi/nuklear_gdi.h | 8 ++++---- demo/gdip/nuklear_gdip.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/demo/gdi/nuklear_gdi.h b/demo/gdi/nuklear_gdi.h index e2d6ec9..29c7042 100644 --- a/demo/gdi/nuklear_gdi.h +++ b/demo/gdi/nuklear_gdi.h @@ -559,20 +559,20 @@ nk_gdi_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam) case VK_HOME: nk_input_key(&gdi.ctx, NK_KEY_TEXT_START, down); - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_START, down); + nk_input_key(&gdi.ctx, NK_KEY_SCROLL_START, down); return 1; case VK_END: nk_input_key(&gdi.ctx, NK_KEY_TEXT_END, down); - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_END, down); + nk_input_key(&gdi.ctx, NK_KEY_SCROLL_END, down); return 1; case VK_NEXT: - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_DOWN, down); + nk_input_key(&gdi.ctx, NK_KEY_SCROLL_DOWN, down); return 1; case VK_PRIOR: - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_UP, down); + nk_input_key(&gdi.ctx, NK_KEY_SCROLL_UP, down); return 1; case 'C': diff --git a/demo/gdip/nuklear_gdip.h b/demo/gdip/nuklear_gdip.h index 3ad73f0..db04a3a 100644 --- a/demo/gdip/nuklear_gdip.h +++ b/demo/gdip/nuklear_gdip.h @@ -792,21 +792,21 @@ nk_gdip_handle_event(HWND wnd, UINT msg, WPARAM wparam, LPARAM lparam) return 1; case VK_HOME: - nk_input_key(&gdi.ctx, NK_KEY_TEXT_START, down); - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_START, down); + nk_input_key(&gdip.ctx, NK_KEY_TEXT_START, down); + nk_input_key(&gdip.ctx, NK_KEY_SCROLL_START, down); return 1; case VK_END: nk_input_key(&gdi.ctx, NK_KEY_TEXT_END, down); - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_END, down); + nk_input_key(&gdip.ctx, NK_KEY_SCROLL_END, down); return 1; case VK_NEXT: - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_DOWN, down); + nk_input_key(&gdip.ctx, NK_KEY_SCROLL_DOWN, down); return 1; case VK_PRIOR: - nk_input_key(&d3d11.ctx, NK_KEY_SCROLL_UP, down); + nk_input_key(&gdip.ctx, NK_KEY_SCROLL_UP, down); return 1; case 'C':