高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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.
|