Subversion Repositories seema-scanner

Rev

Rev 36 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36 Rev 71
Line 127... Line 127...
127
        SwapIntervalEXT(contextInfo->display, contextInfo->window, 1);
127
        SwapIntervalEXT(contextInfo->display, contextInfo->window, 1);
128
    } else {
128
    } else {
129
        std::cerr << "OpenGLContext.Unix Error: Could not access swap interval extension!" << std::endl;
129
        std::cerr << "OpenGLContext.Unix Error: Could not access swap interval extension!" << std::endl;
130
    }
130
    }
131
 
131
 
132
    // Adjust gamma to one
132
    // Match projector gamma
133
    setGamma(1.0);
133
    setGamma(1.9);
134
}
134
}
135
 
135
 
136
void OpenGLContext::setGamma(float gamma){
136
void OpenGLContext::setGamma(float gamma){
137
    // Adjust gamma
137
    // Adjust gamma
138
    XF86VidModeGamma xf86Gamma = {gamma, gamma, gamma};
138
    XF86VidModeGamma xf86Gamma = {gamma, gamma, gamma};