Mercurial > projects > dwt-win
comparison dwt/internal/BidiUtil.d @ 237:e2affbeb686d
Making tango.sys.win32.Types and dwt.internal.win32.WINTYPES to match common declaration. Make ansi charactars of type ubyte.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 19 Jun 2008 03:25:36 +0200 |
parents | 36f5cb12e1a2 |
children |
comparison
equal
deleted
inserted
replaced
236:9c1bb90eba13 | 237:e2affbeb686d |
---|---|
191 GCP_RESULTS result; | 191 GCP_RESULTS result; |
192 result.lStructSize = GCP_RESULTS.sizeof; | 192 result.lStructSize = GCP_RESULTS.sizeof; |
193 result.nGlyphs = byteCount; | 193 result.nGlyphs = byteCount; |
194 auto lpOrder = result.lpOrder = cast(uint*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); | 194 auto lpOrder = result.lpOrder = cast(uint*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); |
195 auto lpDx = result.lpDx = cast(int*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); | 195 auto lpDx = result.lpDx = cast(int*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); |
196 auto lpClass = result.lpClass = cast(char*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount); | 196 auto lpClass = result.lpClass = cast(CHAR*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount); |
197 auto lpGlyphs = result.lpGlyphs = cast(wchar*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 2); | 197 auto lpGlyphs = result.lpGlyphs = cast(wchar*)OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 2); |
198 | 198 |
199 // set required dwFlags | 199 // set required dwFlags |
200 int dwFlags = 0; | 200 int dwFlags = 0; |
201 int glyphFlags = 0; | 201 int glyphFlags = 0; |
321 | 321 |
322 GCP_RESULTS result; | 322 GCP_RESULTS result; |
323 result.lStructSize = GCP_RESULTS.sizeof; | 323 result.lStructSize = GCP_RESULTS.sizeof; |
324 result.nGlyphs = byteCount; | 324 result.nGlyphs = byteCount; |
325 auto lpOrder = result.lpOrder = cast(uint*) OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); | 325 auto lpOrder = result.lpOrder = cast(uint*) OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount * 4); |
326 auto lpClass = result.lpClass = cast(char*) OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount); | 326 auto lpClass = result.lpClass = cast(CHAR*) OS.HeapAlloc(hHeap, OS.HEAP_ZERO_MEMORY, byteCount); |
327 | 327 |
328 // set required dwFlags, these values will affect how the text gets rendered and | 328 // set required dwFlags, these values will affect how the text gets rendered and |
329 // ordered | 329 // ordered |
330 int dwFlags = 0; | 330 int dwFlags = 0; |
331 // Always reorder. We assume that if we are calling this function we're | 331 // Always reorder. We assume that if we are calling this function we're |