comparison gui/wm/ws.c @ 35657:eadf0731a29a

Add property wsAspect. Windows with this property shall regard option 'keepaspect'. Tag video window with wsAspect.
author ib
date Tue, 15 Jan 2013 12:44:03 +0000
parents f2093dc82b5f
children 321934456307
comparison
equal deleted inserted replaced
35656:f2093dc82b5f 35657:eadf0731a29a
469 win->SizeHint.flags |= PMaxSize; 469 win->SizeHint.flags |= PMaxSize;
470 win->SizeHint.max_width = win->Width; 470 win->SizeHint.max_width = win->Width;
471 win->SizeHint.max_height = win->Height; 471 win->SizeHint.max_height = win->Height;
472 } 472 }
473 473
474 if (vo_keepaspect /*&& (win->Property & wsAspect)*/) { 474 if (vo_keepaspect && (win->Property & wsAspect)) {
475 win->SizeHint.flags |= PAspect; 475 win->SizeHint.flags |= PAspect;
476 win->SizeHint.min_aspect.x = win->Width; 476 win->SizeHint.min_aspect.x = win->Width;
477 win->SizeHint.min_aspect.y = win->Height; 477 win->SizeHint.min_aspect.y = win->Height;
478 win->SizeHint.max_aspect.x = win->Width; 478 win->SizeHint.max_aspect.x = win->Width;
479 win->SizeHint.max_aspect.y = win->Height; 479 win->SizeHint.max_aspect.y = win->Height;