mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
debug++
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8937 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6d2e21b273
commit
57b2503b00
@ -29,16 +29,25 @@ static struct {
|
||||
} aspdat;
|
||||
|
||||
void aspect_save_orig(int orgw, int orgh){
|
||||
#ifdef ASPECT_DEBUG
|
||||
printf("aspect_save_orig %dx%d \n",orgw,orgh);
|
||||
#endif
|
||||
aspdat.orgw = orgw;
|
||||
aspdat.orgh = orgh;
|
||||
}
|
||||
|
||||
void aspect_save_prescale(int prew, int preh){
|
||||
#ifdef ASPECT_DEBUG
|
||||
printf("aspect_save_prescale %dx%d \n",prew,preh);
|
||||
#endif
|
||||
aspdat.prew = prew;
|
||||
aspdat.preh = preh;
|
||||
}
|
||||
|
||||
void aspect_save_screenres(int scrw, int scrh){
|
||||
#ifdef ASPECT_DEBUG
|
||||
printf("aspect_save_screenres %dx%d \n",scrw,scrh);
|
||||
#endif
|
||||
aspdat.scrw = scrw;
|
||||
aspdat.scrh = scrh;
|
||||
}
|
||||
@ -51,7 +60,8 @@ void aspect(int *srcw, int *srch, int zoom){
|
||||
int tmpw;
|
||||
|
||||
#ifdef ASPECT_DEBUG
|
||||
printf("aspect(0) fitin: %dx%d zoom: %d \n",aspdat.scrw,aspdat.scrh,zoom);
|
||||
printf("aspect(0) fitin: %dx%d zoom: %d screenaspect: %.2f\n",aspdat.scrw,aspdat.scrh,
|
||||
zoom,monitor_aspect);
|
||||
printf("aspect(1) wh: %dx%d (org: %dx%d)\n",*srcw,*srch,aspdat.prew,aspdat.preh);
|
||||
#endif
|
||||
if(zoom){
|
||||
|
Loading…
Reference in New Issue
Block a user