test/common.c
changeset 6543 44a83e1a48f9
parent 6513 c781fb99ce39
child 6544 c03db4864789
equal deleted inserted replaced
6542:5c1b8ed19212 6543:44a83e1a48f9
  1098                         }
  1098                         }
  1099                     }
  1099                     }
  1100                 }
  1100                 }
  1101             }
  1101             }
  1102             break;
  1102             break;
       
  1103         case SDLK_EQUALS: {
       
  1104                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
       
  1105                 if (window) {
       
  1106                     int w, h;
       
  1107                     SDL_GetWindowSize(window, &w, &h);
       
  1108                     SDL_SetWindowSize(window, w*2, h*2);
       
  1109                 }
       
  1110             }
       
  1111             break;
       
  1112         case SDLK_MINUS: {
       
  1113                 SDL_Window *window = SDL_GetWindowFromID(event->key.windowID);
       
  1114                 if (window) {
       
  1115                     int w, h;
       
  1116                     SDL_GetWindowSize(window, &w, &h);
       
  1117                     SDL_SetWindowSize(window, w/2, h/2);
       
  1118                 }
       
  1119             }
       
  1120             break;
  1103         case SDLK_c:
  1121         case SDLK_c:
  1104             if (event->key.keysym.mod & KMOD_CTRL) {
  1122             if (event->key.keysym.mod & KMOD_CTRL) {
  1105                 /* Ctrl-C copy awesome text! */
  1123                 /* Ctrl-C copy awesome text! */
  1106                 SDL_SetClipboardText("SDL rocks!\nYou know it!");
  1124                 SDL_SetClipboardText("SDL rocks!\nYou know it!");
  1107                 printf("Copied text to clipboard\n");
  1125                 printf("Copied text to clipboard\n");