Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 10, 2006, 4:52:21 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: new SubString class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/std/src/lib/graphics/graphics_engine.cc

    r7203 r7211  
    176176  const std::string textures = iniParser->getVar(CONFIG_NAME_TEXTURES, CONFIG_SECTION_VIDEO_ADVANCED, "0");
    177177  if (textures[0] == '1' || textures == "true")
    178     Texture::setTextureEnableState( true);
     178    Texture::setTextureEnableState(true);
    179179  else
    180180    Texture::setTextureEnableState(false);
     
    183183  SubString resolution(iniParser->getVar(CONFIG_NAME_RESOLUTION, CONFIG_SECTION_VIDEO, "640x480").c_str(), 'x'); ///FIXME
    184184  //resolution.debug();
    185 
    186   this->initVideo(atoi(resolution.getString(0)), atoi(resolution.getString(1)), 16);
     185  MultiType x = resolution.getString(0), y = resolution.getString(1);
     186  this->initVideo(x.getInt(), y.getInt(), 16);
    187187
    188188  //   GraphicsEffect* fe = new FogEffect(NULL);
     
    533533  if (this->hwExtensions != NULL)
    534534    for (unsigned int i = 0; i < this->hwExtensions->getCount(); i++)
    535       if (!strcmp(extension, this->hwExtensions->getString(i)))
     535      if ( this->hwExtensions->getString(i) == extension)
    536536        return true;
    537537  return false;
Note: See TracChangeset for help on using the changeset viewer.