test/common.c
changeset 6544 c03db4864789
parent 6543 44a83e1a48f9
child 6602 533131e24aeb
equal deleted inserted replaced
6543:44a83e1a48f9 6544:c03db4864789
  1098                         }
  1098                         }
  1099                     }
  1099                     }
  1100                 }
  1100                 }
  1101             }
  1101             }
  1102             break;
  1102             break;
  1103         case SDLK_EQUALS: {
  1103         case SDLK_EQUALS:
       
  1104             if (event->key.keysym.mod & KMOD_CTRL) {
       
  1105                 /* Ctrt-+ double the size of the window */
  1104                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
  1106                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
  1105                 if (window) {
  1107                 if (window) {
  1106                     int w, h;
  1108                     int w, h;
  1107                     SDL_GetWindowSize(window, &w, &h);
  1109                     SDL_GetWindowSize(window, &w, &h);
  1108                     SDL_SetWindowSize(window, w*2, h*2);
  1110                     SDL_SetWindowSize(window, w*2, h*2);
  1109                 }
  1111                 }
  1110             }
  1112             }
  1111             break;
  1113             break;
  1112         case SDLK_MINUS: {
  1114         case SDLK_MINUS:
       
  1115             if (event->key.keysym.mod & KMOD_CTRL) {
       
  1116                 /* Ctrt-- double the size of the window */
  1113                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
  1117                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
  1114                 if (window) {
  1118                 if (window) {
  1115                     int w, h;
  1119                     int w, h;
  1116                     SDL_GetWindowSize(window, &w, &h);
  1120                     SDL_GetWindowSize(window, &w, &h);
  1117                     SDL_SetWindowSize(window, w/2, h/2);
  1121                     SDL_SetWindowSize(window, w/2, h/2);