/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
#include <stdlib.h>
#include <jni.h>
#include <jlong.h>
#include "X11SurfaceData.h"
#include "Region.h"
{
#ifndef HEADLESS
return;
}
return;
}
return;
}
return;
}
return;
}
#ifdef MITSHM
}
#endif /* MITSHM */
/* clip the source rect to the source pixmap's dimensions */
/* intersect the source and dest rects */
}
if (!Region_IsEmpty(&clipInfo)) {
}
}
}
#ifdef MITSHM
}
#endif /* MITSHM */
#endif /* !HEADLESS */
}
{
#ifndef HEADLESS
return;
}
return;
}
return;
}
return;
}
#ifdef MITSHM
}
#endif /* MITSHM */
if (srcDrawable == 0) {
return;
}
/* clip the source rect to the source pixmap's dimensions */
/* intersect the source and dest rects */
/* do an unmasked copy as we've already filled transparent
pixels of the source image with the desired color */
#endif /* !HEADLESS */
}
/*
* Class: sun_java2d_x11_X11PMBlitLoops
* Method: updateBitmask
* Signature: (Lsun/java2d/SurfaceData;Lsun/java2d/SurfaceData;)V
*/
{
#ifndef HEADLESS
int flags;
int screen;
int width;
int height;
int rowCount;
unsigned char *pDst;
return;
}
AWT_LOCK();
/* create the bitmask if it is not yet created */
AWT_UNLOCK();
"Cannot create bitmask for "
"offscreen surface");
return;
}
}
/* Create a bitmask image and then blit it to the pixmap. */
AWT_UNLOCK();
return;
}
AWT_UNLOCK();
return;
}
AWT_UNLOCK();
return;
}
if (isICM) {
unsigned char *pSrc;
do {
int x = 0, bx = 0;
unsigned int pix = 0;
do {
if (bit == 0) {
pix = 0;
bit = 0x80;
}
bit >>= 1;
} while (++x < width);
} while (--rowCount > 0);
} else {
do {
int x = 0, bx = 0;
unsigned int pix = 0;
do {
if ((bit >> 8) != 0) {
pix = 0;
bit = 1;
}
bit <<= 1;
} while (++x < width);
} while (--rowCount > 0);
}
} else /*DCM with ARGB*/ {
unsigned int *pSrc;
/* this is a number of pixels in a row, not number of bytes */
do {
int x = 0, bx = 0;
unsigned int pix = 0;
do {
if (bit == 0) {
/* next word */
pix = 0;
bit = 0x80;
}
if (*srcPixel++ & 0xff000000) {
/* if src pixel is opaque, set the bit in the bitmap */
}
bit >>= 1;
} while (++x < width);
/* last pixels in a row */
} while (--rowCount > 0);
} else {
do {
int x = 0, bx = 0;
unsigned int pix = 0;
do {
if ((bit >> 8) != 0) {
pix = 0;
bit = 1;
}
if (*srcPixel++ & 0xff000000) {
/* if src pixel is opaque, set the bit in the bitmap */
}
bit <<= 1;
} while (++x < width);
} while (--rowCount > 0);
}
}
AWT_UNLOCK();
#endif /* !HEADLESS */
}