1
0
Fork 0
forked from Miroirs/x49gp
This commit is contained in:
Gwenhael Le Moine 2024-11-20 10:39:14 +01:00
parent efcffa461d
commit c528beed1f
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -7,7 +7,6 @@
#include <fcntl.h>
#include <sys/times.h>
#include <errno.h>
#include <arpa/inet.h> /* For ntohl() */
#include <gtk/gtk.h>
#include <glib.h>
@ -1472,15 +1471,15 @@ static int ui_load( x49gp_module_t* module, GKeyFile* keyfile )
gtk_container_add( GTK_CONTAINER( keyboard_container ), rows_containers[ row ] );
switch ( row ) {
case 1:
nb_keys_in_row = 4;
break;
case 0:
case 2:
nb_keys_in_row = 6;
break;
default:
nb_keys_in_row = 5;
case 1:
nb_keys_in_row = 4;
break;
case 0:
case 2:
nb_keys_in_row = 6;
break;
default:
nb_keys_in_row = 5;
}
for ( int column = 0; column < nb_keys_in_row; column++ ) {