mirror of
https://github.com/mpv-player/mpv
synced 2025-03-02 04:11:03 +00:00
w32_common.c, vo_direct3d.c: Fix Windows compilation issues
In w32_common.c the special "old_vo_defines.h" header was included too late. vo_direct3d.c was copied from svn without fixing the type of the control() function.
This commit is contained in:
parent
10e4753998
commit
a6af927ea1
@ -549,7 +549,7 @@ static int preinit(const char *arg)
|
|||||||
/** @brief libvo Callback: Handle control requests.
|
/** @brief libvo Callback: Handle control requests.
|
||||||
* @return VO_TRUE on success, VO_NOTIMPL when not implemented
|
* @return VO_TRUE on success, VO_NOTIMPL when not implemented
|
||||||
*/
|
*/
|
||||||
static int control(uint32_t request, void *data, ...)
|
static int control(uint32_t request, void *data)
|
||||||
{
|
{
|
||||||
switch (request) {
|
switch (request) {
|
||||||
case VOCTRL_QUERY_FORMAT:
|
case VOCTRL_QUERY_FORMAT:
|
||||||
|
@ -3,6 +3,8 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <windowsx.h>
|
#include <windowsx.h>
|
||||||
|
|
||||||
|
// To get "#define vo_ontop global_vo->opts->vo_ontop" etc
|
||||||
|
#include "old_vo_defines.h"
|
||||||
#include "osdep/keycodes.h"
|
#include "osdep/keycodes.h"
|
||||||
#include "input/input.h"
|
#include "input/input.h"
|
||||||
#include "input/mouse.h"
|
#include "input/mouse.h"
|
||||||
@ -11,8 +13,6 @@
|
|||||||
#include "aspect.h"
|
#include "aspect.h"
|
||||||
#include "w32_common.h"
|
#include "w32_common.h"
|
||||||
#include "mp_fifo.h"
|
#include "mp_fifo.h"
|
||||||
// To get "#define vo_ontop global_vo->opts->vo_ontop" etc
|
|
||||||
#include "old_vo_defines.h"
|
|
||||||
|
|
||||||
extern int enable_mouse_movements;
|
extern int enable_mouse_movements;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user