Changeset 288:af37dd280317
- Timestamp:
- 08/21/08 10:08:55 (3 months ago)
- Files:
-
- dwt/graphics/TextLayout.d (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
dwt/graphics/TextLayout.d
r287 r288 2900 2900 bool useCMAPcheck = !sp.fComplex && !run.analysis.fNoGlyphIndex; 2901 2901 if (useCMAPcheck) { 2902 ushort[] glyphs = new ushort[wchars.length];2902 scope ushort[] glyphs = new ushort[wchars.length]; 2903 2903 if (OS.ScriptGetCMap(hdc, run.psc, wchars.ptr, wchars.length, 0, glyphs.ptr) !is OS.S_OK) { 2904 2904 if (run.psc !is null) { … … 2906 2906 glyphCount[0] = 0; 2907 2907 int[1] one = 1; 2908 // OS.MoveMemory( run.psc, one.ptr, (void*).sizeof ); 2909 // DWT: FIXME This should be checked, it works in Java with the MoveMemory 2908 *cast(int*)run.psc = 0; 2910 2909 } 2911 2910 return false; 2912 2911 } 2913 //delete glyphs;2914 2912 } 2915 2913 auto hr = OS.ScriptShape(hdc, run.psc, wchars.ptr, wchars.length, maxGlyphs, &run.analysis, run.glyphs, run.clusters, run.visAttrs, glyphCount.ptr); … … 2932 2930 OS.ScriptFreeCache(run.psc); 2933 2931 glyphCount[0] = 0; 2934 int[1] one = 1; 2935 OS.MoveMemory( run.psc, one.ptr, (void*).sizeof ); 2932 *cast(int*)run.psc = 0; 2936 2933 } 2937 2934 run.glyphCount = 0;
