Mercurial > mplayer.hg
comparison libvo/vo_gl2.c @ 2278:54874c78af6b
aspect changes integrated .., please check performance and conformance
author | sven |
---|---|
date | Fri, 19 Oct 2001 10:51:04 +0000 |
parents | 558a9397c250 |
children | f8978836ef7f |
comparison
equal
deleted
inserted
replaced
2277:22452cfc3a55 | 2278:54874c78af6b |
---|---|
615 image_format = format; | 615 image_format = format; |
616 | 616 |
617 if (X_already_started) return -1; | 617 if (X_already_started) return -1; |
618 if(!vo_init()) return -1; | 618 if(!vo_init()) return -1; |
619 | 619 |
620 aspect_save_orig(width,height); | |
621 aspect_save_prescale(d_width,d_height); | |
622 aspect_save_screenres(vo_screenwidth,vo_screenheight); | |
623 | |
624 aspect(&d_width,&d_height,A_NOZOOM); | |
625 | |
620 X_already_started++; | 626 X_already_started++; |
621 | 627 |
622 if( flags&0x01 ) | 628 if( flags&0x01 ) |
623 { | 629 { |
624 isFullscreen = GL_TRUE; | 630 isFullscreen = GL_TRUE; |
625 aspect(&d_width,&d_height,vo_screenwidth,vo_screenheight); | 631 aspect(&d_width,&d_height,A_ZOOM); |
626 hint.x = 0; | 632 hint.x = 0; |
627 hint.y = 0; | 633 hint.y = 0; |
628 hint.width = vo_screenwidth; | 634 hint.width = vo_screenwidth; |
629 hint.height = vo_screenheight; | 635 hint.height = vo_screenheight; |
630 hint.flags = PPosition | PSize; | 636 hint.flags = PPosition | PSize; |