Update of /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13442/Pythonwin/pywin/scintilla
Modified Files:
view.py
Log Message:
Use signed long format for HDC's in struct.pack
Index: view.py
===================================================================
RCS file: /cvsroot/pywin32/pywin32/Pythonwin/pywin/scintilla/view.py,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** view.py 10 Jan 2006 05:03:49 -0000 1.24
--- view.py 17 Dec 2006 21:38:27 -0000 1.25
***************
*** 639,643 ****
hdcRender = dc.GetHandleOutput()
hdcFormat = dc.GetHandleAttrib()
! fr = struct.pack('LLIIIIIIIIll', hdcRender, hdcFormat, rc[0], rc[1], rc[2], rc[3], rc[0], rc[1], rc[2], rc[3], pageStart, lengthDoc)
frBuff = array.array('c', fr)
addressFrBuff = frBuff.buffer_info()[0]
--- 639,643 ----
hdcRender = dc.GetHandleOutput()
hdcFormat = dc.GetHandleAttrib()
! fr = struct.pack('llIIIIIIIIll', hdcRender, hdcFormat, rc[0], rc[1], rc[2], rc[3], rc[0], rc[1], rc[2], rc[3], pageStart, lengthDoc)
frBuff = array.array('c', fr)
addressFrBuff = frBuff.buffer_info()[0]
|