Closed
Bug 302781
Opened 19 years ago
Closed 19 years ago
Splash screen should fade in on Windows
Categories
(SeaMonkey :: General, enhancement)
Tracking
(Not tracked)
VERIFIED
FIXED
seamonkey1.0alpha
People
(Reporter: csthomas, Assigned: csthomas)
Details
Attachments
(1 file, 2 obsolete files)
3.84 KB,
patch
|
emaijala+moz
:
review+
neil
:
superreview+
asa
:
approval1.8b4+
|
Details | Diff | Splinter Review |
The splash screen should fade in.
Assignee | ||
Comment 1•19 years ago
|
||
Attachment #191059 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191059 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Seamonkey1.0alpha
Assignee | ||
Updated•19 years ago
|
Attachment #191059 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191059 -
Flags: review?(neil.parkwaycc.co.uk)
Assignee | ||
Comment 2•19 years ago
|
||
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 3•19 years ago
|
||
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-
Assignee | ||
Updated•19 years ago
|
Attachment #191126 -
Attachment is obsolete: true
Attachment #191126 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191126 -
Flags: review?(emaijala)
Assignee | ||
Updated•19 years ago
|
Attachment #191059 -
Attachment is obsolete: true
Assignee | ||
Comment 4•19 years ago
|
||
Addresses Neil's comments here and on IRC.
Attachment #191146 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #191146 -
Flags: review?(emaijala)
Comment 5•19 years ago
|
||
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 6•19 years ago
|
||
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+
Assignee | ||
Comment 7•19 years ago
|
||
Comment on attachment 191146 [details] [diff] [review] patch SeaMonkey-only patch
Attachment #191146 -
Flags: approval1.8b4?
Updated•19 years ago
|
Attachment #191146 -
Flags: approval1.8b4? → approval1.8b4+
Assignee | ||
Comment 8•19 years ago
|
||
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
Comment 9•19 years ago
|
||
[offtopic] I think I saw somewhere in bugzilla mentioned that ns stands for namespace rather than netscape.
Assignee | ||
Comment 10•19 years ago
|
||
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 → ---
Assignee | ||
Comment 11•19 years ago
|
||
Checked in fixed version (Neil's suggestions worked).
Status: REOPENED → RESOLVED
Closed: 19 years ago → 19 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.
Description
•