Commit 5879d8b3 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander Trofimov

windows good version

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@59421 954022d7-b5bf-4e40-9824-e11837661b57
parent 917dcd07
......@@ -29,57 +29,6 @@ public:
}
};
// TODO: убрать, как только проверить линукс!!!
#if 0
void CVideoMemory::Init()
{
CTemporaryCS oCS(&m_oCS);
QGLContext* ctx = const_cast<QGLContext *>(QGLContext::currentContext());
QGLWidget* pShare = static_cast<QGLWidget *>(ctx->device());
m_main_ctx = (void*)QGLContext::currentContext();
m_arThreads.Add((void*)QThread::currentThread());
m_arContext.Add((void*)pShare);
ctx->makeCurrent();
}
void CVideoMemory::SetCurrentCtx()
{
QThread* pThread = QThread::currentThread();
int nCount = m_arThreads.GetCount();
for (int i = 0; i < nCount; ++i)
{
if (pThread == m_arThreads[i])
{
QGLWidget* pCurrent = ((QGLWidget*)m_arContext[i]);
pCurrent->makeCurrent();
return;
}
}
QGLWidget *share = static_cast<QGLWidget *>(m_arContext[0]);
QGLWidget* pWorker = new QGLWidget(0, share);
pWorker->resize(8, 8);
m_arThreads.Add((void*)pThread);
m_arContext.Add((void*)pWorker);
pWorker->makeCurrent();
}
void CVideoMemory::UnSetCurrentCtx()
{
}
#endif
// Native control
void CNativeCtrl::slot_threadRepaint()
{
......@@ -131,7 +80,7 @@ void CNativeCtrl::ChangeCountPagesInBlock()
void CNativeCtrl::initializeGL()
{
m_pWrapper->m_oDevicePainter.m_oFrameControls.m_oFrame.Init();
m_pWrapper->m_oDevicePainter.m_oFrameControls.m_oFrame.Init(m_pWrapper->GetCountThreadsUse());
m_pWrapper->Resize(100, 100);
m_pWrapper->InternalInit();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment