comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/IME.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 6dd524f61e62
children 536e43f63c81
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
408 length_ = chars.length; 408 length_ = chars.length;
409 for (int i = 0; i < length_; i+=chars.getRelativeCodePointOffset(i,1)) { 409 for (int i = 0; i < length_; i+=chars.getRelativeCodePointOffset(i,1)) {
410 dchar c = chars[ i .. $ ].firstCodePoint(); 410 dchar c = chars[ i .. $ ].firstCodePoint();
411 display.lastAscii = c; 411 display.lastAscii = c;
412 event = new Event (); 412 event = new Event ();
413 event.character = c; 413 event.character = cast(wchar) c;
414 parent.sendEvent (SWT.KeyDown, event); 414 parent.sendEvent (SWT.KeyDown, event);
415 } 415 }
416 } 416 }
417 } 417 }
418 if ((lParam & OS.GCS_COMPSTR) is 0) return LRESULT.ONE; 418 if ((lParam & OS.GCS_COMPSTR) is 0) return LRESULT.ONE;