Changeset 230:c853f6513712

Show
Ignore:
Timestamp:
05/24/08 02:59:14 (8 months ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

removed debug prints

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/graphics/TextLayout.d

    r229 r230  
    1212 *******************************************************************************/ 
    1313module dwt.graphics.TextLayout; 
    14  
    15 import tango.util.log.Trace; 
    1614 
    1715import dwt.DWT; 
     
    22642262    int pcItems; 
    22652263    wchar[] chars = StrToWCHARs( segmentsText ); 
    2266     Trace.formatln( "{} {}: segmentsText='{}' chars='{}'", __FILE__,__LINE__, segmentsText, chars ); 
    22672264    OS.ScriptItemize(chars.ptr, chars.length, MAX_ITEM, &scriptControl, &scriptState, pItems, &pcItems); 
    22682265//  if (hr is E_OUTOFMEMORY) //TODO handle it 
    22692266 
    22702267    // Translate the utf16 indices to utf8 indices 
    2271     Trace.formatln( "{} {}: pcItems={} chars.length={} segmentsText.length={}", __FILE__,__LINE__,pcItems, chars.length, segmentsText.length ); 
    22722268    int utf8idx = 0; 
    22732269    SCRIPT_ITEM* si = pItems; 
    22742270    foreach( uint utf16idx, char c; chars ){ 
    2275         Trace.formatln( "{} {}: utf8idx={} utf16idx={} si.iCharPos={}", __FILE__,__LINE__,utf8idx, utf16idx, si.iCharPos ); 
    22762271        if( si.iCharPos is utf16idx ){ 
    22772272            si.iCharPos = utf8idx; 
     
    22962291    } 
    22972292    int count = 0, start = 0, end = segmentsText.length, itemIndex = 0, styleIndex = 0; 
    2298 Trace.formatln( "{} {}: itemCount={} stylesCount={}", __FILE__,__LINE__,itemCount, stylesCount ); 
    22992293    StyleItem[] runs = new StyleItem[itemCount + stylesCount]; 
    23002294    SCRIPT_ITEM* scriptItem = new SCRIPT_ITEM(); 
    23012295    bool linkBefore = false; 
    2302 Trace.formatln( "{} {}: start={} end={}", __FILE__,__LINE__,start, end ); 
    23032296    while (start < end) { 
    23042297        StyleItem item = new StyleItem(); 
    23052298        item.start = start; 
    23062299        item.style = styles[styleIndex].style; 
    2307 Trace.formatln( "{} {}: count={}", __FILE__,__LINE__,count ); 
    23082300        runs[count++] = item; 
    23092301        OS.MoveMemory(scriptItem, (cast(void*)items) + itemIndex * SCRIPT_ITEM.sizeof, SCRIPT_ITEM.sizeof); 
     
    23342326        } 
    23352327        item.length = start - item.start; 
    2336 Trace.formatln( "{} {}: start={} end={}", __FILE__,__LINE__,start, end ); 
    23372328    } 
    23382329    StyleItem item = new StyleItem(); 
     
    23402331    OS.MoveMemory(scriptItem, (cast(void*)items) + itemCount * SCRIPT_ITEM.sizeof, SCRIPT_ITEM.sizeof); 
    23412332    item.analysis = scriptItem.a; 
    2342 Trace.formatln( "{} {}: count={}", __FILE__,__LINE__,count ); 
    23432333    runs[count++] = item; 
    23442334    if (runs.length !is count) { 
     
    27552745    styles[1].start = text.length; 
    27562746    stylesCount = 2; 
    2757 Trace.formatln( "{} {}: text='{}'", __FILE__,__LINE__, text ); 
    27582747} 
    27592748