summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiogo Franco (Kovensky) <diogomfranco@gmail.com>2013-07-18 22:25:04 -0300
committerwm4 <wm4@nowhere>2013-07-20 02:20:26 +0200
commit6ab2eebe5fdf9a4e075b6aa164f40e2bd89ee76e (patch)
tree1a57568f8b5a418a69091e86b0c4336f71808f1f
parent1652d3689c6d592ef130fe8b132480944f0096fc (diff)
downloadmpv-6ab2eebe5fdf9a4e075b6aa164f40e2bd89ee76e.tar.bz2
mpv-6ab2eebe5fdf9a4e075b6aa164f40e2bd89ee76e.tar.xz
direct3d: Fixes format string that assumed sizeof(LONG) == sizeof(long)
-rw-r--r--video/out/vo_direct3d.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/video/out/vo_direct3d.c b/video/out/vo_direct3d.c
index 6540177ad0..25d0b8f0da 100644
--- a/video/out/vo_direct3d.c
+++ b/video/out/vo_direct3d.c
@@ -26,6 +26,7 @@
#include <stdbool.h>
#include <assert.h>
#include <d3d9.h>
+#include <inttypes.h>
#include "config.h"
#include "core/options.h"
#include "core/subopt-helper.h"
@@ -290,7 +291,7 @@ static void calc_fs_rect(d3d_priv *priv)
priv->fs_panscan_rect.bottom = src_rect.y1;
mp_msg(MSGT_VO, MSGL_V,
- "<vo_direct3d>Video rectangle: t: %ld, l: %ld, r: %ld, b:%ld\n",
+ "<vo_direct3d>Video rectangle: t: %"PRId32", l: %"PRId32", r: %"PRId32", b:%"PRId32"\n",
priv->fs_movie_rect.top, priv->fs_movie_rect.left,
priv->fs_movie_rect.right, priv->fs_movie_rect.bottom);
}