Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

performance: fix unmapped key handling

  • Loading branch information...
commit c0a7199a21dd8c06135259df0c355b4fa5d8ae1c 1 parent f040ca7
Sébastien Bourdeauducq authored November 29, 2011

Showing 1 changed file with 4 additions and 2 deletions. Show diff stats Hide diff stats

  1. 6  src/gui/performance.c
6  src/gui/performance.c
@@ -427,13 +427,15 @@ static void event_callback(mtk_event *e, int count)
427 427
 				index = keycode_to_index(e[i].press.code);
428 428
 				if(index != -1) {
429 429
 					index = keyboard_patches[index];
430  
-					renderer_add_patch(patches[index].p);
  430
+					if(index != -1)
  431
+						renderer_add_patch(patches[index].p);
431 432
 				}
432 433
 			} else if(e[i].type == EVENT_TYPE_RELEASE) {
433 434
 				index = keycode_to_index(e[i].release.code);
434 435
 				if(index != -1) {
435 436
 					index = keyboard_patches[index];
436  
-					renderer_del_patch(patches[index].p);
  437
+					if(index != -1)
  438
+						renderer_del_patch(patches[index].p);
437 439
 				}
438 440
 			} else if(e[i].type == EVENT_TYPE_IR) {
439 441
 				index = e[i].press.code;

0 notes on commit c0a7199

Please sign in to comment.
Something went wrong with that request. Please try again.