#endif
GLDrawClass *pgl = rMainWindow->getGraphicsView();
pgl->set_emu_launched();
- pgl->setFixedSize(pgl->width(), pgl->height());
+// pgl->setFixedSize(pgl->width(), pgl->height());
rMainWindow->retranselateUi_Depended_OSD();
QObject::connect(emu->get_osd(), SIGNAL(sig_update_device_node_name(int, const _TCHAR *)),
rMainWindow, SLOT(do_update_device_node_name(int, const _TCHAR *)));
void GLDraw_2_0::resizeGL(int width, int height)
{
//int side = qMin(width, height);
- p_wid->makeCurrent();
extfunc_2->glViewport(0, 0, width, height);
extfunc_2->glOrtho(-1.0f, 1.0f, -1.0f, 1.0f, -1.0, 1.0);
crt_flag = true;
if(using_flags->get_max_button() > 0) {
updateButtonTexture();
}
- p_wid->doneCurrent();
}
void GLDraw_2_0::paintGL(void)
void GLDraw_3_0::resizeGL(int width, int height)
{
//int side = qMin(width, height);
- p_wid->makeCurrent();
extfunc->glViewport(0, 0, width, height);
extfunc->glOrtho(-1.0f, 1.0f, -1.0f, 1.0f, -1.0, 1.0);
crt_flag = true;
if(using_flags->get_max_button() > 0) {
updateButtonTexture();
}
- p_wid->doneCurrent();
}
void GLDraw_4_5::resizeGL(int width, int height)
{
//int side = qMin(width, height);
- p_wid->makeCurrent();
extfunc->glViewport(0, 0, width, height);
//extfunc->glOrtho(-1.0f, 1.0f, -1.0f, 1.0f, -1.0, 1.0);
crt_flag = true;
if(using_flags->get_max_button() > 0) {
updateButtonTexture();
}
- p_wid->doneCurrent();
}
void GLDraw_4_5::initButtons(void)
void GLDraw_ES_2::resizeGL(int width, int height)
{
//int side = qMin(width, height);
- p_wid->makeCurrent();
extfunc->glViewport(0, 0, width, height);
//extfunc->glOrtho(-1.0f, 1.0f, -1.0f, 1.0f, -1.0, 1.0);
crt_flag = true;
if(using_flags->get_max_button() > 0) {
updateButtonTexture();
}
- p_wid->doneCurrent();
}
void GLDraw_ES_2::initButtons(void)