查看单个帖子
旧 2009-05-06, 10:03 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】plot preview not working in odamfcapp

plot preview not working in odamfcapp
plot preview not working in odamfcapp
create a new drawing in odamfcapp. create a line and try and plot preview. note that it shows just a black box.
btw: disabling of options\print\preview via bitmap may be used as temporary fix.
fix :
in the file
\extensions\exrender\win\exgsopenglvectorizedevice .cpp
replace method with
code:
void exgsopenglvectorizedevice::update(odgsdcrect* prect)
{
if(!m_hglrc)
{
createcontext();
}
else
{
oda_verify(::wglmakecurrent(m_hdc, m_hglrc));
}

if (!supportpartialupdate())
{
clear();
}
odgsopenglvectorizedevice::update(prect);
::swapbuffers(m_hdc);
::glfinish();
}
this is result of partial screen update functionality implementation.
saving of file preview also was broken. please, let me know if my suggestion willn't fix the problem.
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)