diff --git a/cache.c b/cache.c index 967de3f..70fcf2c 100644 --- a/cache.c +++ b/cache.c @@ -282,10 +282,8 @@ cache_get_font(uint8 font, uint16 character) if ((font < NUM_ELEMENTS(g_fontcache)) && (character < NUM_ELEMENTS(g_fontcache[0]))) { glyph = &g_fontcache[font][character]; - if (glyph->pixmap != NULL) { - //printf("glyph:%p\n", glyph); + if (glyph->pixmap != NULL) return glyph; - } } error("get font %d:%d\n", font, character); diff --git a/xkeymap.c b/xkeymap.c index 85ce8ba..6ea3234 100644 --- a/xkeymap.c +++ b/xkeymap.c @@ -495,7 +495,6 @@ send_winkey(uint32 ev_time, BOOL pressed, BOOL leftkey) static void reset_winkey(uint32 ev_time) { - printf("reset_winkey\n"); if (g_use_rdp5) { /* For some reason, it seems to suffice to release @@ -953,10 +952,6 @@ reset_modifier_keys() if (g_numlock_sync) rdp_send_input(ev_time, RDP_INPUT_SYNCHRONIZE, 0, ui_get_numlock_state(state), 0); - - //sleep(4); - //rdp_send_input(time(NULL), RDP_INPUT_SCANCODE, RDP_KEYPRESS, 0x9c, 0); - //rdp_send_input(time(NULL), RDP_INPUT_SCANCODE, RDP_KEYRELEASE, 0x9c, 0); }