File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6315,24 +6315,21 @@ static bool rgui_set_aspect_ratio(
63156315 break ;
63166316 case RGUI_ASPECT_RATIO_AUTO :
63176317 {
6318+ #if !defined(DJGPP )
63186319 /* Use 4:3 as base, and adjust width according to core geometry */
63196320 video_driver_state_t * video_st = video_state_get_ptr ();
6320-
6321- #if defined(DJGPP )
6322- rgui -> frame_buf .width = RGUI_DOS_FB_WIDTH ;
6323- #else
63246321 if (rgui -> frame_buf .height == 240 )
63256322 rgui -> frame_buf .width = 320 ;
63266323 else
63276324 rgui -> frame_buf .width = RGUI_ROUND_FB_WIDTH (
63286325 (4.0f / 3.0f ) * (float )rgui -> frame_buf .height );
6329- #endif
63306326 base_term_width = rgui -> frame_buf .width ;
6331-
6332- #if !defined(DJGPP )
63336327 if (video_st && video_st -> av_info .geometry .aspect_ratio > 0 )
63346328 rgui -> frame_buf .width = RGUI_ROUND_FB_WIDTH (
63356329 rgui -> frame_buf .height * video_st -> av_info .geometry .aspect_ratio );
6330+ #else
6331+ rgui -> frame_buf .width = RGUI_DOS_FB_WIDTH ;
6332+ base_term_width = rgui -> frame_buf .width ;
63366333#endif
63376334 }
63386335 break ;
You can’t perform that action at this time.
0 commit comments