@@ -271,6 +271,10 @@ struct GeneralList {
271271 icon_lang : SafeTexture ,
272272
273273 lang_btn : ChooseButton ,
274+
275+ #[ cfg( target_os = "windows" ) ]
276+ fullscreen_btn : DRectButton ,
277+
274278 cache_btn : DRectButton ,
275279 offline_btn : DRectButton ,
276280 server_status_btn : DRectButton ,
@@ -300,6 +304,10 @@ impl GeneralList {
300304 . and_then ( |ident| LANG_IDENTS . iter ( ) . position ( |it| * it == ident) )
301305 . unwrap_or_default ( ) ,
302306 ) ,
307+
308+ #[ cfg( target_os = "windows" ) ]
309+ fullscreen_btn : DRectButton :: new ( ) ,
310+
303311 cache_btn : DRectButton :: new ( ) ,
304312 offline_btn : DRectButton :: new ( ) ,
305313 server_status_btn : DRectButton :: new ( ) ,
@@ -353,6 +361,13 @@ impl GeneralList {
353361 if self . lang_btn . touch ( touch, t) {
354362 return Ok ( Some ( false ) ) ;
355363 }
364+
365+ #[ cfg( target_os = "windows" ) ]
366+ if self . fullscreen_btn . touch ( touch, t) {
367+ config. fullscreen_mode ^= true ;
368+ return Ok ( Some ( true ) ) ;
369+ }
370+
356371 if self . cache_btn . touch ( touch, t) {
357372 fs:: remove_dir_all ( dir:: cache ( ) ?) ?;
358373 self . update_cache_size ( ) ?;
@@ -453,6 +468,13 @@ impl GeneralList {
453468 ui. fill_rect( r, ( * self . icon_lang, r) ) ;
454469 self . lang_btn. render( ui, rr, t) ;
455470 }
471+
472+ #[ cfg( target_os = "windows" ) ]
473+ item ! {
474+ render_title( ui, tl!( "item-fullscreen" ) , Some ( tl!( "item-fullscreen-sub" ) ) ) ;
475+ render_switch( ui, rr, t, & mut self . fullscreen_btn, config. fullscreen_mode) ;
476+ }
477+
456478 item ! {
457479 render_title( ui, tl!( "item-offline" ) , Some ( tl!( "item-offline-sub" ) ) ) ;
458480 render_switch( ui, rr, t, & mut self . offline_btn, config. offline_mode) ;
0 commit comments