2362N/A * Copyright (c) 2005, 2008, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A/* Could use npt but decided to cut down on linked code size */ 0N/A /* reserving memory for the worst case */ 0N/A/* paint current splash screen frame to hdc 0N/A this function is unused in layered window mode */ 0N/A /* we're ALWAYS using BGRA in screenFormat */ 0N/A /* creating the palette in SplashInitPlatform does not work, so I'm creating it 0N/A/* The function makes the window visible if it is hidden 0N/A or is not yet shown. */ 0N/A // FIXME: this is somewhat ineffective 0N/A // maybe if we allocate memory for all frames as DIBSections, 0N/A // then we could select the frames into the DC directly 0N/A // Windows won't update the cursor after the window is shown, 0N/A // if the cursor is already above the window. need to do this manually. 0N/A // unfortunately Windows fail to understand that the window 0N/A // thread should own the cursor, even though the mouse pointer 0N/A // is over the window, until the mouse has been moved. 0N/A // we're using SetCursorPos here to fake the mouse movement 0N/A // and enable proper update of the cursor. 0N/A //Fixed 6474657: splash screen image jumps towards left while 0N/A // setting the new image using setImageURL() 0N/A // We may safely hide the splash window because SplashRedrawWindow() 0N/A // will show the window again. 0N/A 0x00ff0000,
0x0000ff00,
0x000000ff,
0xff000000);
0N/A /* FIXME: maybe remapping to non-reserved colors would improve performance */ 0N/A 0x00ff0000,
0x0000ff00,
0x000000ff,
0xff000000);