Mercurial > godwindows
changeset 70:d57cd6f0c947
Fix issues rendering due to globals not getting set.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Wed, 20 Mar 2013 14:27:46 -0500 |
parents | 911727e32fb9 |
children | 9ec8791aaa84 |
files | src/dwootest/dwootest.go |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/dwootest/dwootest.go Wed Mar 20 13:44:25 2013 -0500 +++ b/src/dwootest/dwootest.go Wed Mar 20 14:27:46 2013 -0500 @@ -120,9 +120,9 @@ dw.ColorForegroundSet(dw.CLR_WHITE); if hpma == dw.NOHPIXMAP { - text1pm.DrawRect(dw.DRAW_FILL | dw.DRAW_NOAA, 0, 0, dw.Pixmap_width(text1pm), dw.Pixmap_height(text1pm)); + text1pm.DrawRect(dw.DRAW_FILL | dw.DRAW_NOAA, 0, 0, text1pm.GetWidth(), text1pm.GetHeight()); } - hpm.DrawRect(dw.DRAW_FILL | dw.DRAW_NOAA, 0, 0, dw.Pixmap_width(hpm), dw.Pixmap_height(hpm)); + hpm.DrawRect(dw.DRAW_FILL | dw.DRAW_NOAA, 0, 0, hpm.GetWidth(), hpm.GetHeight()); for i = 0; (i < nrows) && (i+row < len(lines)); i++ { fileline := i + row - 1; @@ -656,7 +656,7 @@ } /* create render box for number pixmap */ - textbox1 := dw.RenderNew(100); + textbox1 = dw.RenderNew(100); textbox1.SetFont(FIXEDFONT); font_width, font_height = textbox1.GetTextExtents("(g"); font_width = font_width / 2; @@ -673,7 +673,7 @@ pagebox.PackStart(textboxA, 0, 0, dw.TRUE, dw.TRUE, 0); /* create render box for filecontents pixmap */ - textbox2 := dw.RenderNew(101); + textbox2 = dw.RenderNew(101); textboxA.PackStart(textbox2, 10, 10, dw.TRUE, dw.TRUE, 0); textbox2.SetFont(FIXEDFONT); /* create horizonal scrollbar */