summaryrefslogtreecommitdiffstats
path: root/video/image_writer.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-03-14 15:49:32 +0100
committerwm4 <wm4@nowhere>2013-03-17 18:46:03 +0100
commitb1b982941d1a746c17006c4a7f9d4317123ec1fd (patch)
treeab89725c7b748cf20a63a02d089a7333279487c4 /video/image_writer.c
parentad000fb91630b117035f83dc5a10680d5e835ea5 (diff)
downloadmpv-b1b982941d1a746c17006c4a7f9d4317123ec1fd.tar.bz2
mpv-b1b982941d1a746c17006c4a7f9d4317123ec1fd.tar.xz
vo_x11: use generic aspect ratio code, refactor
Instead of manually calculating aspect ratio etc., use vo_get_src_dst_rects(). This has the advantage that we can drop some special cases in aspect.c later. Simplify the code, and move resizing the X images from draw_image() to a new resize() function. Do some other simplifications. The gXErrorFlag check was actually dead code, even in mplayer-svn. Special-casing on WinID is not needed anymore (we created an embedded window, and its size is updated by x11_common.c).
Diffstat (limited to 'video/image_writer.c')
0 files changed, 0 insertions, 0 deletions