Closed Bug 302781 Opened 19 years ago Closed 19 years ago

Splash screen should fade in on Windows

Categories

(SeaMonkey :: General, enhancement)

x86
Windows XP
enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED
seamonkey1.0alpha

People

(Reporter: csthomas, Assigned: csthomas)

Details

Attachments

(1 file, 2 obsolete files)

The splash screen should fade in.
Attached patch patch (obsolete) — Splinter Review
Attachment #191059 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191059 - Flags: review?(neil.parkwaycc.co.uk)
Status: NEW → ASSIGNED
Target Milestone: --- → Seamonkey1.0alpha
Attachment #191059 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191059 - Flags: review?(neil.parkwaycc.co.uk)
Attached patch better patch (obsolete) — Splinter Review
Define constants myself as suggested by Neil, so we don't have to
#define _WIN32_WINNT 0x0500
Attachment #191059 - Attachment is obsolete: true
Attachment #191126 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191126 - Flags: review?(emaijala)
Comment on attachment 191059 [details] [diff] [review]
patch

>+#define _WIN32_WINNT 0x0500
You can't require the PSDK.

>+typedef BOOL (WINAPI *tSETLAYEREDWINDOWATTRIBUTESPROC)(HWND, COLORREF, BYTE, DWORD);
The Netscape style was to generate the type name from the function name by
prefixing NS_ although you might prefer to prefix MOZ_ instead.

>+    bool rv = (mSetLayeredWindowAttributesProc)(hwnd, 0, mOpacity, LWA_ALPHA);
>+    if (!rv)
>+        printf("SetLateredWindowAttributes failed: %d.\n", rv);
Can't printf, use NS_WARN_IF FALSE if you must, but note that rv is always 0 in
the printf...
Attachment #191059 - Attachment is obsolete: false
Attachment #191059 - Flags: superreview-
Attachment #191126 - Attachment is obsolete: true
Attachment #191126 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191126 - Flags: review?(emaijala)
Attachment #191059 - Attachment is obsolete: true
Attached patch patchSplinter Review
Addresses Neil's comments here and on IRC.
Attachment #191146 - Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191146 - Flags: review?(emaijala)
Comment on attachment 191146 [details] [diff] [review]
patch

>+nsSplashScreenWin::TimerProc(HWND hwnd, UINT uMsg, UINT_PTR idEvent, DWORD dwTime) {
Nit: Style in this file seems to be to use HWND dlg as the window handle.

>+                SetTimer(dlg, 0, 5, TimerProc);
I think this value is a little small. Apparently XP does support timers with a
resolution of better than 55ms but its minimum is supposedly now 15ms (although
since there are only four hits in all of google I can't corroborate this).
Attachment #191146 - Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment on attachment 191146 [details] [diff] [review]
patch

I agree with Neil regarding the timer value, but this is ok to me anyway.
r=emaijala
Attachment #191146 - Flags: review?(emaijala) → review+
Comment on attachment 191146 [details] [diff] [review]
patch

SeaMonkey-only patch
Attachment #191146 - Flags: approval1.8b4?
Attachment #191146 - Flags: approval1.8b4? → approval1.8b4+
I checked it in with a delay of 10, the minimum on Server 2003 (based on PSDK
headers).  If this is in fact below the minimum time for any of the other OSes
this applies to, they'll just use the minimum time which should still be fine.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
QA Contact: general → stdonner
Resolution: --- → FIXED
Summary: Splash screen should fade in → Splash screen should fade in on Windows
[offtopic] I think I saw somewhere in bugzilla mentioned that ns stands for
namespace rather than netscape.
This set Creature on fire.

c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp(545)
: error C2065: 'SetWindowLongPtr' : undeclared identifier
c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp(546)
: error C2065: 'GetWindowLongPtr' : undeclared identifier
c:/builds/tinderbox/MozillaTrunk/WINNT_5.0_Clobber/mozilla/xpfe/bootstrap/nsNativeAppSupportWin.cpp(549)
: error C2664: 'SetTimer' : cannot convert parameter 4 from 'void (__stdcall
*)(struct HWND__ *,unsigned int,unsigned long,unsigned long)' to 'void
(__stdcall *)(struct HWND__ *,unsigned int,unsigned int,unsigned long)'
        This conversion requires a reinterpret_cast, a C-style cast or
function-style cast
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Checked in fixed version (Neil's suggestions worked).
Status: REOPENED → RESOLVED
Closed: 19 years ago19 years ago
Resolution: --- → FIXED
Verified FIXED with build 2005-10-13-16 on Windows XP SeaMonkey trunk.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: