Windows does not have ffs() implementation. added one
Enable RootlessSafeAlpha and RootlessAcceleration for the Windows port too
This commit is contained in:
parent
bb43f234c5
commit
b09f2a0495
|
@ -61,6 +61,21 @@ SOFTWARE.
|
||||||
#include "Xmd.h"
|
#include "Xmd.h"
|
||||||
#include "servermd.h"
|
#include "servermd.h"
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
static
|
||||||
|
int ffs(int word) {
|
||||||
|
int i;
|
||||||
|
if (!word)
|
||||||
|
return 0;
|
||||||
|
i = 0;
|
||||||
|
for (;;)
|
||||||
|
{
|
||||||
|
if (((1 << i++) & word) != 0)
|
||||||
|
return i;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* MICOPYAREA -- public entry for the CopyArea request
|
/* MICOPYAREA -- public entry for the CopyArea request
|
||||||
* For each rectangle in the source region
|
* For each rectangle in the source region
|
||||||
* get the pixels with GetSpans
|
* get the pixels with GetSpans
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
|
|
||||||
#endif /* __DARWIN__ */
|
#endif /* __DARWIN__ */
|
||||||
|
|
||||||
#ifdef __CYGWIN__
|
#if defined(__CYGWIN__) || defined(WIN32)
|
||||||
|
|
||||||
# define ROOTLESS_ACCEL YES
|
# define ROOTLESS_ACCEL YES
|
||||||
# define ROOTLESS_GLOBAL_COORDS TRUE
|
# define ROOTLESS_GLOBAL_COORDS TRUE
|
||||||
|
|
Loading…
Reference in New Issue