/*
* 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.
*/
// copy from awt.h
#ifndef _WIN32_WINNT
#endif
// copy from awt.h
#ifndef _WIN32_IE
#endif
#include "splashscreen_impl.h"
#include <windowsx.h>
#include <windows.h>
#include <winuser.h>
#include "sizecalc.h"
#ifndef WS_EX_LAYERED
#endif
#ifndef ULW_ALPHA
#endif
#ifndef AC_SRC_OVER
#endif
#ifndef AC_SRC_ALPHA
#endif
/* Could use npt but decided to cut down on linked code size */
if (!in) {
return NULL;
}
NULL, 0);
if (!buf) {
return NULL;
}
if (rc==0) {
return NULL;
} else {
if (size) {
}
return (char*)buf;
}
}
unsigned
SplashTime(void)
{
return GetTickCount();
}
void
{
if (!splash->maskRequired)
return;
/* reserving memory for the worst case */
return;
}
if (!pRgnData) {
return;
}
}
/* paint current splash screen frame to hdc
this function is unused in layered window mode */
void
{
return;
return;
if (!pBmi) {
return;
}
/* we're ALWAYS using BGRA in screenFormat */
/* creating the palette in SplashInitPlatform does not work, so I'm creating it
here on demand */
unsigned i;
if (!pLogPal) {
return;
}
for (i = 0; i < numColors; i++) {
}
}
}
if (hOldPal)
}
/* The function makes the window visible if it is hidden
or is not yet shown. */
void
{
void *bitmapBits;
bf.BlendFlags = 0;
// FIXME: this is somewhat ineffective
// maybe if we allocate memory for all frames as DIBSections,
// then we could select the frames into the DC directly
&bitmapBits, NULL, 0);
}
else {
if (splash->maskRequired) {
} else {
}
}
// Windows won't update the cursor after the window is shown,
// if the cursor is already above the window. need to do this manually.
// unfortunately Windows fail to understand that the window
// thread should own the cursor, even though the mouse pointer
// is over the window, until the mouse has been moved.
// we're using SetCursorPos here to fake the mouse movement
// and enable proper update of the cursor.
}
}
if (SplashIsStillLooping(splash)) {
if (time < 0)
time = 0;
}
else {
}
}
//Fixed 6474657: splash screen image jumps towards left while
// setting the new image using setImageURL()
// We may safely hide the splash window because SplashRedrawWindow()
// will show the window again.
}
}
{
switch (message) {
case WM_ERASEBKGND:
return TRUE; // to avoid flicker
case WM_SYSCOMMAND:
{
return 0;
}
case WM_TIMER:
case WM_SPLASHUPDATE:
case WM_PAINT:
case WM_SPLASHRECONFIGURE:
{
switch(message) {
case WM_TIMER:
break;
case WM_SPLASHUPDATE:
break;
case WM_PAINT:
break;
case WM_SPLASHRECONFIGURE:
break;
}
}
break;
}
case WM_DESTROY:
PostQuitMessage(0);
break;
default:
}
return 0;
}
{
if (!wndClass) {
return 0;
}
return hWnd;
}
void
{
}
void
{
}
void
{
int paletteMode;
if (UpdateLayeredWindow && !paletteMode) {
}
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
splash->maskRequired = 0;
}
else {
if (paletteMode) {
int i;
/* FIXME: maybe remapping to non-reserved colors would improve performance */
for (i = 0; i < numColors; i++) {
splash->colorIndex[i] = i;
}
splash->colorIndex);
}
else {
0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000);
}
}
}
void
{
int i;
for (i = 0; i < splash->frameCount; i++) {
}
}
}
}
void
{
}
void
{
}
}
{
splash->currentFrame = 0;
}
return 0;
}
void
{
}
void
{
}
void
{
}
void
{
}