[Ohrrpgce] SVN: teeemcee/9474 gfx_fb now runs 32-bit by default, and switches from 8 to 32 bit when ne

Ralph Versteegen teeemcee at gmail.com
Wed Sep 27 20:33:24 PDT 2017


The documentation is correct. You forget that our 'integer' isn't the same
as FB's integer. I redefined it in config.bi to be the same as long, so
that it's always 32 bit.

On 28 September 2017 at 04:50, James Paige <Bob at hamsterrepublic.com> wrote:

> That is interesting. The docs for screeninfo at https://www.freebasic.net/
> wiki/wikka.php?wakka=KeyPgScreeninfo claim it takes type integer, but I
> guess for some reason that is not accurate on 64 bit
>
> On Wed, Sep 27, 2017 at 8:19 AM, Ralph Versteegen <teeemcee at gmail.com>
> wrote:
>
>> Oh right, need to use size_t there.
>>
>> On 28 September 2017 at 04:12, James Paige <Bob at hamsterrepublic.com>
>> wrote:
>>
>>> Looks like this commit broke compiling on 64 bit linux.
>>>
>>> gfx_fb.bas(61) error 57: Type mismatch, at parameter 1 of SCREENINFO()
>>> in 'screeninfo desktopsize.w, desktopsize.h, bpp, , , refreshrate, driver'
>>> scons: *** [build/game-gfx_fb.o] Error 1
>>> scons: building terminated because of errors.
>>>
>>>
>>>
>>> On Tue, Sep 26, 2017 at 3:04 AM, <subversion at hamsterrepublic.com> wrote:
>>>
>>>> teeemcee
>>>> 2017-09-26 03:04:22 -0700 (Tue, 26 Sep 2017)
>>>> 356
>>>> gfx_fb now runs 32-bit by default, and switches from 8 to 32 bit when
>>>> necessary instead of freezing
>>>>
>>>> Unlike SDL, the windows is destroyed and recreated when switching
>>>> bitdepth,
>>>> so default to 32-bit. (This could be bad when running on a machine with
>>>> only
>>>> 16-bit graphics... but gfx_fb doesn't support android anyway)
>>>> gfx_sdl uses native bitdepth by default.
>>>> ---
>>>> U   wip/gfx_fb.bas
>>>> _______________________________________________
>>>> Ohrrpgce mailing list
>>>> ohrrpgce at lists.motherhamster.org
>>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>>
>>>
>>>
>>> _______________________________________________
>>> Ohrrpgce mailing list
>>> ohrrpgce at lists.motherhamster.org
>>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>>
>>>
>>
>> _______________________________________________
>> Ohrrpgce mailing list
>> ohrrpgce at lists.motherhamster.org
>> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>>
>>
>
> _______________________________________________
> Ohrrpgce mailing list
> ohrrpgce at lists.motherhamster.org
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20170928/a14c2a8d/attachment-0001.html>


More information about the Ohrrpgce mailing list