几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】plot preview not working in odamfcapp (http://www.dimcax.com/hust/showthread.php?t=17909)

yang686526 2009-05-06 10:03 PM

【转帖】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.


所有的时间均为北京时间。 现在的时间是 11:31 PM.