File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -571,8 +571,8 @@ static void *gdi_init(const video_info_t *video,
571571
572572 if (temp_width != 0 && temp_height != 0 )
573573 video_driver_set_size (temp_width , temp_height );
574-
575- video_driver_get_size (& temp_width , & temp_height );
574+ else
575+ video_driver_get_size (& temp_width , & temp_height );
576576
577577 RARCH_LOG ("[GDI] Using resolution %ux%u.\n" , temp_width , temp_height );
578578
Original file line number Diff line number Diff line change @@ -1285,8 +1285,8 @@ static void *gl1_init(const video_info_t *video,
12851285
12861286 if (temp_width != 0 && temp_height != 0 )
12871287 video_driver_set_size (temp_width , temp_height );
1288-
1289- video_driver_get_size (& temp_width , & temp_height );
1288+ else
1289+ video_driver_get_size (& temp_width , & temp_height );
12901290
12911291 RARCH_LOG ("[GL1] Using resolution %ux%u.\n" , temp_width , temp_height );
12921292
Original file line number Diff line number Diff line change @@ -4657,8 +4657,8 @@ static void *gl2_init(const video_info_t *video,
46574657
46584658 if (temp_width != 0 && temp_height != 0 )
46594659 video_driver_set_size (temp_width , temp_height );
4660-
4661- video_driver_get_size (& temp_width , & temp_height );
4660+ else
4661+ video_driver_get_size (& temp_width , & temp_height );
46624662 gl -> video_width = temp_width ;
46634663 gl -> video_height = temp_height ;
46644664
Original file line number Diff line number Diff line change @@ -3025,7 +3025,8 @@ static void *gl3_init(const video_info_t *video,
30253025
30263026 if (temp_width != 0 && temp_height != 0 )
30273027 video_driver_set_size (temp_width , temp_height );
3028- video_driver_get_size (& temp_width , & temp_height );
3028+ else
3029+ video_driver_get_size (& temp_width , & temp_height );
30293030 gl -> video_width = temp_width ;
30303031 gl -> video_height = temp_height ;
30313032
Original file line number Diff line number Diff line change @@ -197,8 +197,8 @@ static void *vg_init(const video_info_t *video,
197197 temp_width , temp_height );
198198 video_driver_set_size (temp_width , temp_height );
199199 }
200-
201- video_driver_get_size (& temp_width , & temp_height );
200+ else
201+ video_driver_get_size (& temp_width , & temp_height );
202202
203203 vg -> mScreenAspect = (float )temp_width / temp_height ;
204204
Original file line number Diff line number Diff line change @@ -4987,7 +4987,8 @@ static void *vulkan_init(const video_info_t *video,
49874987
49884988 if (temp_width != 0 && temp_height != 0 )
49894989 video_driver_set_size (temp_width , temp_height );
4990- video_driver_get_size (& temp_width , & temp_height );
4990+ else
4991+ video_driver_get_size (& temp_width , & temp_height );
49914992 vk -> video_width = temp_width ;
49924993 vk -> video_height = temp_height ;
49934994 vk -> translate_x = 0.0 ;
You can’t perform that action at this time.
0 commit comments