소스 검색

wayland: Remove duplicate code

Remove some duplicate code that was left behind when rearranging things during the new high-DPI support work.
Frank Praznik 2 년 전
부모
커밋
56120a132d
1개의 변경된 파일0개의 추가작업 그리고 17개의 파일을 삭제
  1. 0 17
      src/video/wayland/SDL_waylandvideo.c

+ 0 - 17
src/video/wayland/SDL_waylandvideo.c

@@ -650,23 +650,6 @@ static void display_handle_done(void *data,
                                                   ((float)driverdata->physical_height) / 25.4f);
     }
 
-    if (driverdata->index > -1) {
-        dpy = SDL_GetDisplay(driverdata->index);
-    } else {
-        dpy = &driverdata->placeholder;
-    }
-
-    SDL_AddDisplayMode(dpy, &desktop_mode);
-    SDL_SetCurrentDisplayMode(dpy, &desktop_mode);
-    SDL_SetDesktopDisplayMode(dpy, &desktop_mode);
-
-    /* Add emulated modes if wp_viewporter is supported and mode emulation is enabled. */
-    if (video->viewporter && mode_emulation_enabled) {
-        const SDL_bool rot_90 = ((driverdata->transform & WL_OUTPUT_TRANSFORM_90) != 0) ||
-                                (driverdata->width < driverdata->height);
-        AddEmulatedModes(dpy, rot_90);
-    }
-
     if (driverdata->index == -1) {
         /* First time getting display info, create the VideoDisplay */
         SDL_bool send_event = driverdata->videodata->initializing ? SDL_FALSE : SDL_TRUE;