X11GraphicsDevice.makeConfigurations()

Mark Wielaard mark at klomp.org
Fri Nov 28 14:44:06 PST 2008


Hi,

I was reading the code and saw that
X11GraphicsDevice.makeConfigurations() has:

      boolean xrender = X11GraphicsEnvironment.isXRenderAvailable();

      if(!xrender) 
      { 
          ret[i] = XRGraphicsConfig.getConfig(this, visNum, depth, 
                            getConfigColormap(i, screen), 
                            doubleBuffer); 
      }else 
      { 
          ret[i] = X11GraphicsConfig.getConfig(this, visNum, depth, 
                   getConfigColormap(i, screen), 
                   doubleBuffer); 
      } 

Isn't this backwards? 

makeDefaultConfiguration() has it as follows:

      if(X11GraphicsEnvironment.isXRenderAvailable())
      {
              System.out.println("XRender pipeline enabled");
          defaultConfig = XRGraphicsConfig.getConfig(this, visNum,
                  depth, getConfigColormap(0, screen),
                  doubleBuffer);
       }else
       {
          defaultConfig = X11GraphicsConfig.getConfig(this, visNum,
                  depth, getConfigColormap(0, screen),
                  doubleBuffer);
       }

Cheers,

Mark




More information about the xrender-dev mailing list