git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4380
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int wxHtmlDCRenderer::Render(int x, int y, int from, int dont_render)
{
int wxHtmlDCRenderer::Render(int x, int y, int from, int dont_render)
{
if (m_Cells == NULL || m_DC == NULL) return 0;
pbreak = (int)(from * m_Scale + m_Height);
while (m_Cells -> AdjustPagebreak(&pbreak)) {}
if (m_Cells == NULL || m_DC == NULL) return 0;
pbreak = (int)(from * m_Scale + m_Height);
while (m_Cells -> AdjustPagebreak(&pbreak)) {}
+ hght = pbreak - (int)(from * m_Scale);
if (!dont_render) {
int w, h;
if (!dont_render) {
int w, h;
m_DC -> SetBrush(*wxWHITE_BRUSH);
m_DC -> SetBrush(*wxWHITE_BRUSH);
- m_DC -> SetClippingRegion(x * m_Scale, y * m_Scale, m_Width, m_Height);
+ m_DC -> SetClippingRegion(x * m_Scale, y * m_Scale, m_Width, hght);
m_Cells -> Draw(*m_DC,
x * m_Scale, (y - from) * m_Scale,
m_Cells -> Draw(*m_DC,
x * m_Scale, (y - from) * m_Scale,
- y * m_Scale, pbreak + (y - from) * m_Scale);
+ y * m_Scale, pbreak + (y /*- from*/) * m_Scale);
m_DC -> DestroyClippingRegion();
}
m_DC -> DestroyClippingRegion();
}