1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

- add dxr3 equ patch from "Szombathelyi [iso-8859-2] György" <gyurco@freemail.hu>

- add cosmetic patch from uh ... don't know :)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7096 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pontscho 2002-08-27 08:33:05 +00:00
parent 5f72bb4caa
commit a3ce1c658a
2 changed files with 14 additions and 8 deletions

View File

@ -5,6 +5,7 @@
#include "ws.h"
#include "wsxdnd.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -158,7 +159,9 @@ wsXDNDProcessClientMessage(wsTWindow* wnd, XClientMessageEvent *event)
int offset = 0;
Atom* ret_buff;
Atom ret_type;
unsigned long ret_format,ret_items;
int ret_format;
unsigned long ret_items;
/* while there is data left...*/
while(ret_left){
XGetWindowProperty(wsDisplay,event->data.l[0],_XA_XdndTypeList,

View File

@ -199,12 +199,13 @@ uint32_t control(uint32_t request, void *data, ...)
if (ioctl(fd_control, EM8300_IOCTL_GETBCS, &bcs) < 0)
return VO_FALSE;
if (!strcasecmp(data, "brightness"))
bcs.brightness = value;
bcs.brightness = (value+100)*5;
else if (!strcasecmp(data, "contrast"))
bcs.contrast = value;
bcs.contrast = (value+100)*5;
else if (!strcasecmp(data, "saturation"))
bcs.saturation = value;
bcs.saturation = (value+100)*5;
else return VO_FALSE;
if (ioctl(fd_control, EM8300_IOCTL_SETBCS, &bcs) < 0)
return VO_FALSE;
return VO_TRUE;
@ -223,11 +224,13 @@ uint32_t control(uint32_t request, void *data, ...)
return VO_FALSE;
if (!strcasecmp(data, "brightness"))
*value = bcs.brightness;
*value = (bcs.brightness/5)-100;
else if (!strcasecmp(data, "contrast"))
*value = bcs.contrast;
*value = (bcs.contrast/5)-100;
else if (!strcasecmp(data, "saturation"))
*value = bcs.saturation;
*value = (bcs.saturation/5)-100;
else return VO_FALSE;
return VO_TRUE;
}
}