Show
Ignore:
Timestamp:
05/04/08 18:42:55 (4 years ago)
Author:
Frank Benoit <benoit@tionex.de>
branch:
default
Message:

reverted char[] to String

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • dwt/opengl/GLData.d

    r174 r238  
    1313 
    1414module dwt.opengl.GLData; 
     15 
     16import dwt.dwthelper.utils; 
    1517 
    1618import tango.text.Util; 
     
    134136 */ 
    135137 
    136     override public char[] toString() { 
    137         char[] string = doubleBuffer ? "doubleBuffer," : ""; 
     138    override public String toString() { 
     139        String string = doubleBuffer ? "doubleBuffer," : ""; 
    138140        string ~= stereo ? "stereo," : ""; 
    139         string ~= "r:" ~     to!(char[])(redSize)  ~ " g:" ~ to!(char[])(greenSize) ~  
    140                   " b:" ~    to!(char[])(blueSize) ~ " a:" ~ to!(char[])(alphaSize) ~ "," ~ 
    141                   "depth:" ~ to!(char[])(depthSize) ~ ",stencil:" ~ to!(char[])(stencilSize) ~ 
    142                   ",accum r:" ~ to!(char[])(accumRedSize) ~ "g:" ~ to!(char[])(accumGreenSize) ~  
    143                   "b:" ~ to!(char[])(accumBlueSize) ~ "a:" ~ to!(char[])(accumAlphaSize) ~ 
    144                   ",sampleBuffers:" ~ to!(char[])(sampleBuffers) ~ ",samples:" ~ to!(char[])(samples); 
     141        string ~= "r:" ~     to!(String)(redSize)  ~ " g:" ~ to!(String)(greenSize) ~  
     142                  " b:" ~    to!(String)(blueSize) ~ " a:" ~ to!(String)(alphaSize) ~ "," ~ 
     143                  "depth:" ~ to!(String)(depthSize) ~ ",stencil:" ~ to!(String)(stencilSize) ~ 
     144                  ",accum r:" ~ to!(String)(accumRedSize) ~ "g:" ~ to!(String)(accumGreenSize) ~  
     145                  "b:" ~ to!(String)(accumBlueSize) ~ "a:" ~ to!(String)(accumAlphaSize) ~ 
     146                  ",sampleBuffers:" ~ to!(String)(sampleBuffers) ~ ",samples:" ~ to!(String)(samples); 
    145147        return string; 
    146148    }