src/render/metal/SDL_render_metal.m
changeset 12179 c06be57c5a01
parent 12169 be34b836f738
child 12213 e4f5271ec8cc
child 12320 758d4e1222a7
equal deleted inserted replaced
12178:3136903f2edc 12179:c06be57c5a01
   750 }
   750 }
   751 
   751 
   752 static void
   752 static void
   753 METAL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   753 METAL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   754 {
   754 {
   755     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED ||
   755     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
   756         event->event == SDL_WINDOWEVENT_SHOWN ||
   756         METAL_RenderData *data = (__bridge METAL_RenderData *) renderer->driverdata;
       
   757         data.mtllayer.drawableSize = CGSizeMake(event->data1, event->data2);
       
   758     }
       
   759 
       
   760     if (event->event == SDL_WINDOWEVENT_SHOWN ||
   757         event->event == SDL_WINDOWEVENT_HIDDEN) {
   761         event->event == SDL_WINDOWEVENT_HIDDEN) {
   758         // !!! FIXME: write me
   762         // !!! FIXME: write me
   759     }
   763     }
   760 }
   764 }
   761 
   765