wayland: Remove duplicate code

Remove some duplicate code that was left behind when rearranging things during the new high-DPI support work.
main
Frank Praznik 2023-01-26 15:17:38 -05:00 committed by Sam Lantinga
parent 077725d0e3
commit 56120a132d
1 changed files with 0 additions and 17 deletions

View File

@ -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;