Using floats should not be a problem as BitBlt will round these to integers:
| canvas image |
canvas := FormCanvas extent: 100.1@100.2.
canvas fillColor: Color gray.
image := Smalltalk ui icons iconNamed: #error.
canvas image: image at: 2.5@3.9 sourceRect: (1.2@5.3 extent: 42.1@43.4) rule: 34.
canvas form inspect.
Best regards,
Henrik
From: Pharo-dev [mailto:pharo-dev-bounces@lists.pharo.org]
On Behalf Of Stephane Ducasse
Sent: Monday, December 19, 2016 10:09 PM
To: Pharo Development List <pharo-dev@lists.pharo.org>
Subject: Re: [Pharo-dev] [Moose-dev] Too frequent crashes :-(
so did it work?
Is there something that we should do?
On Fri, Dec 16, 2016 at 5:06 PM, Alexandre Bergel <alexandre.bergel@me.com> wrote:
Okay, trying���
Alexandre
> On Dec 16, 2016, at 4:40 PM, Aliaksei Syrel <alex.syrel@gmail.com> wrote:
>
> According to crash.dmp TRMorph>drawOn: draws an image using FormCanvas>>#image:at:sourceRect:rule: at a coordinate represented by a Float point.
> Try to round it to integer point.
>
> Cheers,
> Alex
>
> On 16 December 2016 at 16:34, Alexandre Bergel <alexandre.bergel@me.com> wrote:
> Hi!
>
> Vincent and I are experiencing many crashes from GrafPort>copyBits. It crashes every couple of minutes.
>
> I know that not much can be done so far. Stability is my biggest concern with Pharo :-(
> I use the latest VM.
>
> Cheers,
> Alexandre
>
>
>
>
>
>
> --
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>
>
>
> _______________________________________________
> Moose-dev mailing list
> Moose-dev@list.inf.unibe.ch
> https://www.list.inf.unibe.ch/listinfo/moose-dev
>
>
--
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.