> On 20 Apr 2015, at 23:30, Nicolai Hess <nicolaih...@web.de> wrote:
> 
> 
> 2015-04-20 14:20 GMT+02:00 Esteban Lorenzano <esteba...@gmail.com 
> <mailto:esteba...@gmail.com>>:
> Hi, 
> 
> I just committed my prototype/experiment for windows with OSWindow, SDL2 and 
> Athens. 
> to check them: 
> 
> Gofer it 
>       smalltalkhubUser: 'Pharo' project: 'OSWindow';
>       package: 'OSWindow-Core';
>       package: 'OSWindow-SDL2';       
>       package: 'OSWindow-SDL2-Canvases';
>       load.
> 
> and check the examples at: 
> 
> OSSDLAthensWindow
> OSSDLMorphWindow
> 
> Great!
> 
> Although the VM crashes sometimes (after closing the SDL-Window)
well… I said is still a prototype :P

> 
> And I know found out why the window is partly out of the screen (on Windows7, 
> don't think this happens on linux/mac):
> If you open a SDL window with 
> 
> SDL createWindow: title x: 0 y: 0 ....
> The window opens at 0@0 but this is the upper left corner of the window 
> rectangle *without* window decoration. 
> 
> If you open the window with
> SDL createWindow: title x: SDL_WINDOWPOS_UNDEFINED ....
> -> the full window is visible
Yeah, I’m not a windows user and this kind of stupid errors will arise time to 
time.. But I will try to fix them as they come :)

cheers, 
Esteban


> 
> 
> nicolai
> 
> 
> 
> 
>  
> 
> cheers, 
> Esteban
> 
>> On 20 Apr 2015, at 13:55, Nicolai Hess <nicolaih...@web.de 
>> <mailto:nicolaih...@web.de>> wrote:
>> 
>> 
>> 
>> 2015-04-20 13:13 GMT+02:00  <merwanoudd...@gmail.com 
>> <mailto:merwanoudd...@gmail.com>>:
>> Hello,
>>  
>> We don’t lose all keystroke events, but they are replaced by keydown events.
>> 
>> Yes, KeyDown/KeyUp are working and instead of a keystroke event another 
>> keydown is sent.
>> This is strange, I don't know exactly how the SDL event processing can 
>> influence the main window events.
>> Maybe this has something to do how we look for new events in the 
>> SDL2DisplayPlugin.
>> For me the call to SDL_PumpEvents looks unnecessary, maybe this is the cause?
>> 
>> 
>> nicolai
>> 
>>  
>>  
>> Merwan
>>  
>>  
>> De : Nicolai Hess
>> Envoyé : ‎lundi‎ ‎20‎ ‎avril‎ ‎2015 ‎09‎:‎36
>> À : Any question about pharo is welcome; Esteban Lorenzano
>>  
>> 
>> 
>> 2015-04-20 8:38 GMT+02:00 Matthieu Lacaton <matthieu.laca...@gmail.com 
>> <mailto:matthieu.laca...@gmail.com>>:
>> Hello, 
>> 
>> Thanks for your answers ! I have multiple remarks here : 
>> 
>> 1) I know that SDL2 should not be used "as is" in Pharo and I should use 
>> OSWindow instead, that's why I won't use SDL2 directly anymore.
>> 
>> On windows there is currently an issue if you use OSWindow instead of 
>> directly use SDL.
>> If you create a window with OSWindow, (like in the SDL2Example>>osWindow) 
>> you will loose all "keystroke" events in the main pharo window.
>> I don't know yet why this happens.
>> 
>> nicolai

Reply via email to