[Vm-dev] VM Maker: change HostWindwoPlugin>VMMaker-tpr.302.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Mar 7 22:41:54 UTC 2013


tim Rowledge uploaded a new version of VMMaker to project VM Maker:
http://source.squeak.org/VMMaker/change HostWindwoPlugin>VMMaker-tpr.302.mcz

==================== Summary ====================

Name: change HostWindwoPlugin>VMMaker-tpr.302
Author: tpr
Time: 7 March 2013, 2:40:39.704 pm
UUID: f1f203bc-4c4a-4c4b-80af-a47db5090e8f
Ancestors: VMMaker-dtl.301

change HostWindowPlugin> primitiveShowHostWindow... to referto dispBits as ByteArray in order to have the C type be (char *) and not (unsigned *) as before.
This reduces the compile errors for ioShowDisplayOnWindow() which is declared as (sqInt, unsigned char *.....

=============== Diff against VMMaker-dtl.301 ===============

Item was changed:
  ----- Method: HostWindowPlugin>>primitiveShowHostWindow:bits:width:height:depth:left:right:top:bottom: (in category 'system primitives') -----
  primitiveShowHostWindow: windowIndex bits: dispBits width: w height: h depth: d
  left: left right: right top: top bottom: bottom
  "Host window analogue of DisplayScreen> primShowRectLeft:right:top:bottom:
  (Interpreter>primitiveShowDisplayRect) which takes the window index, bitmap
  details and the rectangle bounds. Fail if the windowIndex is invalid or the
  platform routine returns false to indicate failure"
  	|ok|
- 	self var: #dispBits type: 'unsigned char * '.
  	self primitive: 'primitiveShowHostWindowRect'
+ 		parameters: #(SmallInteger ByteArray SmallInteger SmallInteger SmallInteger
- 		parameters: #(SmallInteger WordArray SmallInteger SmallInteger SmallInteger
  SmallInteger SmallInteger SmallInteger SmallInteger).
  
  	"Tell the vm to copy pixel's from dispBits to the screen - this is just
  ioShowDisplay with the extra parameter of the windowIndex integer"
  	ok := self cCode: 'ioShowDisplayOnWindow(dispBits, w, h, d, left, right, top,
  bottom, windowIndex)'.
  	ok ifFalse:[interpreterProxy primitiveFail]!



More information about the Vm-dev mailing list