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

David T. Lewis lewis at mail.msen.com
Sun Mar 24 03:28:14 UTC 2013


OK I give up. This was an update that got saved with the wrong package name,
and I tried to hack it with zip and reload to the repository. Does not work.

I will merge Tim's HostWindowPlugin fix a future update.

Sorry for the noise.

Dave


On Sun, Mar 24, 2013 at 03:22:16AM +0000, commits at source.squeak.org wrote:
>  
> David T. Lewis 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