Closed
Bug 549019
Opened 14 years ago
Closed 14 years ago
Build bustage with older Windows SDKs due to Direct2D landing
Categories
(Core :: Graphics, defect)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: RyanVM, Assigned: bas.schouten)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
1.55 KB,
patch
|
bas.schouten
:
review+
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
Using older versions of the Windows SDK (Vista SDK in my specific case), the trunk is currently unbuildable due to the landing of the Direct2D patch. Compiler can't find dwrite.h. D2D/DWrite build support should be conditional on the presence of the Windows 7 SDK.
Assignee | ||
Comment 1•14 years ago
|
||
The includes in the top of gfxWindowsPlatform.cpp should be wrapped in CAIRO_HAS_DWRITE_FONT. I'm preparing a patch for this.
Assignee | ||
Comment 2•14 years ago
|
||
This patch should solve the issue.
Assignee: nobody → bas.schouten
Status: NEW → ASSIGNED
Attachment #429310 -
Flags: review?(jmuizelaar)
Comment 3•14 years ago
|
||
Don't you also need to ifdef the Makefile to stop compiling the gfxD* files?
Comment 4•14 years ago
|
||
Tested using the Windows 2003 R2 Platform SDK.
Attachment #429316 -
Flags: review?(bas.schouten)
Assignee | ||
Updated•14 years ago
|
Attachment #429310 -
Attachment is obsolete: true
Attachment #429310 -
Flags: review?(jmuizelaar)
Assignee | ||
Comment 5•14 years ago
|
||
Comment on attachment 429316 [details] [diff] [review] Proposed patch >--- a/gfx/thebes/src/gfxFontUtils.cpp Fri Feb 26 18:54:18 2010 -0500 >+++ b/gfx/thebes/src/gfxFontUtils.cpp Sat Feb 27 12:01:40 2010 +0000 >@@ -590,7 +590,7 @@ > } > > // append each font name to the list >- nsAutoString fontname; >+ nsString fontname; > nsPromiseFlatString fonts(fontlistValue); > const PRUnichar *p, *p_end; > fonts.BeginReading(p); This really doesn't belong in this patch. Note that think this patch is correct, so I'll r+ it with the aforementioned change, but I'm not a reviewer for gfx so this is not enough for landing it. Requesting additional review.
Attachment #429316 -
Flags: review?(jmuizelaar)
Attachment #429316 -
Flags: review?(bas.schouten)
Attachment #429316 -
Flags: review+
Assignee | ||
Comment 6•14 years ago
|
||
(In reply to comment #3) > Don't you also need to ifdef the Makefile to stop compiling the gfxD* files? You're absolutely right, this netbook doesn't build very well so I didn't have a chance to check yet :-).
Comment 7•14 years ago
|
||
(In reply to comment #5) >(From update of attachment 429316 [details] [diff] [review]) >>- nsAutoString fontname; >>+ nsString fontname; >This really doesn't belong in this patch. Sorry about that, it's left over from some bloat testing work (the autobuffer for that particular string never gets used).
Comment 8•14 years ago
|
||
Comment on attachment 429316 [details] [diff] [review] Proposed patch Looks ok to me.
Attachment #429316 -
Flags: review?(jmuizelaar) → review+
even if you have the windows 7 SDK installed but your cairo_config.h looks like the following: .... #define CAIRO_HAS_PDF_SURFACE 1 #define CAIRO_HAS_WIN32_SURFACE 1 #define CAIRO_HAS_WIN32_FONT 1 #define CAIRO_HAS_PNG_FUNCTIONS 1 #endif It does not compile. I am not sure, why on win xp sp3 with sdk win7 it behaves like this.
Comment 10•14 years ago
|
||
Comment on attachment 429316 [details] [diff] [review] Proposed patch Pushed changeset 28d69119620b to mozilla-central.
Assignee | ||
Comment 12•14 years ago
|
||
This was fixed.
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•14 years ago
|
blocking2.0: ? → final+
You need to log in
before you can comment on or make changes to this bug.
Description
•