diff options
author | sven <sven@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-24 17:04:08 +0000 |
---|---|---|
committer | sven <sven@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-10-24 17:04:08 +0000 |
commit | 30271065e729c4d72411a335749cc8039292431a (patch) | |
tree | a4179fa574bf51290991107e38151a457e31c7ad | |
parent | e83e41a88dbf606660465f92cecb37fc10727357 (diff) | |
download | mpv-30271065e729c4d72411a335749cc8039292431a.tar.bz2 mpv-30271065e729c4d72411a335749cc8039292431a.tar.xz |
printf-gcc3 patch, x11-commons mRootwin
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2456 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/vo_gl2.c | 20 | ||||
-rw-r--r-- | libvo/x11_common.h | 2 |
2 files changed, 10 insertions, 12 deletions
diff --git a/libvo/vo_gl2.c b/libvo/vo_gl2.c index 237db2443b..01fdb93406 100644 --- a/libvo/vo_gl2.c +++ b/libvo/vo_gl2.c @@ -42,6 +42,14 @@ static vo_info_t vo_info = /* private prototypes */ +static const char * tweaks_used = +#ifdef HAVE_MMX + "mmx_bpp" +#else + "none" +#endif + ; + /* local data */ static unsigned char *ImageDataLocal=NULL; static unsigned char *ImageData=NULL; @@ -661,7 +669,6 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 xswa.background_pixel = 0; xswa.border_pixel = 1; -// xswa.colormap = XCreateColormap(mDisplay, mRootWin, vinfo.visual, AllocNone); xswa.colormap = XCreateColormap(mDisplay, mRootWin, vinfo->visual, AllocNone); xswamask = CWBackPixel | CWBorderPixel | CWColormap; @@ -910,19 +917,10 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3 drawTextureDisplay (); -#ifdef HAVE_MMX printf("[gl2] Using image_bpp=%d, image_bytes=%d, isBGR=%d, \n\tgl_bitmap_format=%s, gl_bitmap_type=%s, \n\tgl_alignment=%d, rgb_size=%d (%d,%d,%d), a_sz=%d, \n\tgl_internal_format=%s, tweaks=%s\n", image_bpp, image_bytes, image_mode==MODE_BGR, gl_bitmap_format_s, gl_bitmap_type_s, gl_alignment, - rgb_sz, r_sz, g_sz, b_sz, a_sz, gl_internal_format_s, - "mmx_bpp"); -#else - printf("[gl2] Using image_bpp=%d, image_bytes=%d, isBGR=%d, \n\tgl_bitmap_format=%s, gl_bitmap_type=%s, \n\tgl_alignment=%d, rgb_size=%d (%d,%d,%d), a_sz=%d, \n\tgl_internal_format=%s, tweaks=%s\n", - image_bpp, image_bytes, image_mode==MODE_BGR, - gl_bitmap_format_s, gl_bitmap_type_s, gl_alignment, - rgb_sz, r_sz, g_sz, b_sz, a_sz, gl_internal_format_s, - "none"); -#endif + rgb_sz, r_sz, g_sz, b_sz, a_sz, gl_internal_format_s, tweaks_used); resize(d_width,d_height); diff --git a/libvo/x11_common.h b/libvo/x11_common.h index db9ba04e78..d20d2ffe92 100644 --- a/libvo/x11_common.h +++ b/libvo/x11_common.h @@ -9,7 +9,7 @@ extern int vo_dheight; extern char *mDisplayName; extern Display *mDisplay; -extern Window *mRootWin; +extern Window mRootWin; extern int mScreen; extern int mLocalDisplay; |