[Gambas-user] Desktop size in sdl2

Fabien Bodard gambas.fr at ...626...
Fri Jan 27 15:41:47 CET 2017


you can do :
Dim s As String
Dim aDesktop As Integer[]

Exec ["xprop", "-root", "_NET_DESKTOP_GEOMETRY"] Wait To s
aDesktop = Split(Split(Trim(s), "=")[1])


2017-01-27 0:51 GMT+01:00 Shane <buster6seven at ...626...>:
> So I can center my window on the Screen
>
>
> On 26/01/17 22:12, Fabien Bodard wrote:
>> why the desktop ?
>>
>> 2017-01-26 0:29 GMT+01:00 Shane <buster6seven at ...626...>:
>>> How do you get the Desktop size in SDL2?
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



-- 
Fabien Bodard




More information about the User mailing list