Received: from eggs.gnu.org ([208.118.235.92]:39934) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USiCs-0001iY-6c for qemu-devel@nongnu.org; Thu, 18 Apr 2013 02:20:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1USiCp-0002wY-Et for qemu-devel@nongnu.org; Thu, 18 Apr 2013 02:20:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1USiCp-0002wS-6j for qemu-devel@nongnu.org; Thu, 18 Apr 2013 02:20:27 -0400 From: Gerd Hoffmann Date: Thu, 18 Apr 2013 08:20:23 +0200 Message-Id: <1366266023-28322-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PATCH] console: unbreak cocoa List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Gerd Hoffmann , Anthony Liguori Signed-off-by: Gerd Hoffmann --- ui/cocoa.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 048cc97..14b784d 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -495,7 +495,7 @@ QemuCocoaView *cocoaView; if (keycode == 58 || keycode == 69) { // emulate caps lock and num lock keydown and keyup kbd_put_keycode(keycode); kbd_put_keycode(keycode | 0x80); - } else if (is_graphic_console()) { + } else if (qemu_console_is_graphic(NULL)) { if (keycode & 0x80) kbd_put_keycode(0xe0); if (modifiers_state[keycode] == 0) { // keydown @@ -1006,7 +1006,7 @@ static void cocoa_refresh(DisplayChangeListener *dcl) [cocoaView handleEvent:event]; } } while(event != nil); - vga_hw_update(); + graphic_hw_update(NULL); } static void cocoa_cleanup(void) -- 1.7.9.7