From d197ec74e31c0a90b440246e5c48dd0644055740 Mon Sep 17 00:00:00 2001 From: Nathan Letwory Date: Mon, 2 May 2011 08:07:24 +0000 Subject: Fix [#26981] Command window is not opening in 2.57.0 Reported by Thomas Engel Fix [#26938] Blender Zoom not working after startup (Windows) Reported by Ilija Boshkov by applying patch [#26881] Fix for console disappearing in debug mode [Windows] Submitted by Alexander Kuznetsov (AlexK) The patch moves console toggling code into GHOST and improves on the toggling behaviour. The patch changes handling of WM_SYSCOMMAND so that alt-key toggling isn't a problem anymore. --- intern/ghost/GHOST_C-api.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'intern/ghost/GHOST_C-api.h') diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index be8dc138797..75837239c4a 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -845,6 +845,18 @@ extern GHOST_TUns8* GHOST_getClipboard(int selection); extern void GHOST_putClipboard(GHOST_TInt8 *buffer, int selection); + +/** + * Toggles console + * @action 0 - Hides + * 1 - Shows + * 2 - Toggles + * 3 - Hides if it runs not from command line + * * - Does nothing + * @return current status (1 -visible, 0 - hidden) + */ +extern int GHOST_toggleConsole(int action); + #ifdef __cplusplus } #endif -- cgit v1.2.3