Skip to contentSkip to conversation

console: unbreak cocoa

PATCH In review Gerd Hoffmann 2 participants 3 messages Apr 18, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 console: unbreak cocoa

---
 ui/cocoa.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/cocoa.m +2 -2
index 048cc97..14b784d 100644
@@ -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)
Signature · 1 line
1.7.9.7
#1 lore raw
Quoted 10 lines · Gerd Hoffmann
---
 ui/cocoa.m |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/cocoa.m +0 -0
index 048cc97..14b784d 100644

ui/cocoa.m QemuCocoaView *cocoaView; · line 498

Quoted 5 lines
ui/cocoa.m +1 -1
@@ -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)) {

This isn't the only use of is_graphic_console(); compare the patch I sent last night:

http://patchwork.ozlabs.org/patch/237347/

thanks
-- PMM

#2 lore raw

Hi,

Quoted 7 lines

ui/cocoa.m QemuCocoaView *cocoaView; · line 498

Quoted 2 lines
ui/cocoa.m +1 -1
-                } else if (is_graphic_console()) {
+                } else if (qemu_console_is_graphic(NULL)) {

This isn't the only use of is_graphic_console(); compare the patch I sent last night:

http://patchwork.ozlabs.org/patch/237347/

Yea, just found it in my inbox.

thanks,
Gerd