summaryrefslogtreecommitdiff
path: root/redo/area_windows.go
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-08-05 12:29:37 -0400
committerPietro Gagliardi <[email protected]>2014-08-05 12:29:37 -0400
commit57df87f11d0d77da35ee624241d6177918a7215a (patch)
tree4546fd1e744bd8fda1d60bf147a3a6d86d6c292b /redo/area_windows.go
parentfada6849c440f8ba5b0d2604c854d85d73f9b1f3 (diff)
Fixed lots of syntax errors, including one where I forgot a parameter to a Windows API call, oops... the problem is present in the main package being replaced too. :x It will be fixed when I move this redo up. Also added Area initializer to uiinit(). NOW does it work???
Diffstat (limited to 'redo/area_windows.go')
-rw-r--r--redo/area_windows.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo/area_windows.go b/redo/area_windows.go
index 06f4eed..ce90167 100644
--- a/redo/area_windows.go
+++ b/redo/area_windows.go
@@ -68,7 +68,7 @@ func doPaint(xrect *C.RECT, hscroll C.int, vscroll C.int, data unsafe.Pointer, d
}
//export dotoARGB
-func dotoARGB(img unsafe.Pointer, ppvBIts *C.VOID) {
+func dotoARGB(img unsafe.Pointer, ppvBIts unsafe.Pointer) {
i := (*image.RGBA)(unsafe.Pointer(img))
// the bitmap Windows gives us has a stride == width
toARGB(i, unsafe.Pointer(ppvBits), i.Rect.Dx() * 4)