From 57b2503b004ce37b7de9cc62682dcfd58ff2a33a Mon Sep 17 00:00:00 2001 From: atmos4 Date: Mon, 13 Jan 2003 01:50:20 +0000 Subject: debug++ git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8937 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/aspect.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'libvo') diff --git a/libvo/aspect.c b/libvo/aspect.c index b32414b272..371dc16f8a 100644 --- a/libvo/aspect.c +++ b/libvo/aspect.c @@ -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){ -- cgit v1.2.3