Search found 774 matches

by Landeel
May 27, 2023 11:42
Forum: Community Discussion
Topic: FreeBASIC 1.10.1 Release Discussion
Replies: 154
Views: 27489

Re: FreeBASIC 1.10.0 Release Discussion

The old '#811 *(ptr).field should give an error' bug is now fixed for fbc version 1.10.0 (and later).
Ouch, this one got me right in the nut. Most are easy to fix, but when you have some nested macros it gets a little crazier.
Awesome release, though.
by Landeel
Aug 28, 2022 21:10
Forum: Linux
Topic: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5
Replies: 24
Views: 16284

Re: (L)Ubuntu Focal Fossa (20.04) and libtinfo.so.5

And finally, it works. The problem was all about libm, not libc. Here's what I did: 1) Copied the following files from my 18.04 installation to '/usr/local/lib/freebasic/linux-x86_64' : -rw-r--r-- 1 root root 3570098 abr 10 15:40 libm-2.27.a -rw-r--r-- 1 root root 249 abr 10 15:42 libm.a -rw-r--r--...
by Landeel
Jul 18, 2022 14:37
Forum: Game Dev
Topic: Kung Fu Er San (on Steam)
Replies: 3
Views: 4343

Re: Kung Fu Er San (another WIP)

by Landeel
Sep 19, 2021 12:33
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 71
Views: 6362

Re: Distortion when moving across the screen sprite (Raspberry 4B))

The program of your link https://www.freebasic.net/forum/viewtopic.php?t=13715&start=0&postdays=0&postorder=asc&highlight=opengl+vsync is easily converted to 32-bit FB1. 07. But on 64-bit 1.08 it gives an error: Passing different pointer types, at parameter 2 of GLGETINTEGERV(). Ple...
by Landeel
Sep 04, 2021 20:02
Forum: Beginners
Topic: Distortion when moving across the screen sprite (Raspberry 4B))
Replies: 71
Views: 6362

Re: Distortion when moving across the screen sprite (Raspberry 4B))

I think what you're seeing is tearing. It means the image refresh is not in sync with the monitor retrace. This is what I use to enable VSYNC: https://www.freebasic.net/forum/viewtopic.php?t=13715&start=0&postdays=0&postorder=asc&highlight=opengl+vsync For this to work, you must: 1) ...
by Landeel
Jun 30, 2021 11:58
Forum: Libraries & Headers
Topic: FBImage static Win/Lin 32/64-bit
Replies: 67
Views: 34524

Re: FBImage static Win/Lin 32/64-bit

I had to make a small change in the header to compile with fbc 1.08.0.

Just changed

Code: Select all

imageinfo imgDst,,,,dpitch,d
to

Code: Select all

dim as integer w2,h2
imageinfo imgDst,w2,h2,,dpitch,d 
This is very useful BTW.
Thank you again, D.J.Peters.
by Landeel
Jun 27, 2021 12:28
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 1118

Re: Question about threads and mutexes

Thanks for the explanation adeyblue! I got it.
Your version looks way more elegant, fxm.
by Landeel
Jun 27, 2021 1:22
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 1118

Re: Question about threads and mutexes

Why do you want to protect from possible flickering? - The window is never cleared. - Always the same number of characters are written starting from the same location (1, 1). Otherwise: - 'screensynch()' is a process of thumb because the plotting/printing must fit inside the small interval between ...
by Landeel
Jun 26, 2021 17:04
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 1118

Re: Question about threads and mutexes

It is safer to: - Use a thread sub of signature: 'Sub(Byval As Any Ptr)' . - Use a mutex to avoid multi-threading conflict between 'swap string1, string2' and 'print string1+" "' , even if 'swap' only exchanges the string decriptors, because the descriptor structure corresponds to a Point...
by Landeel
Jun 26, 2021 14:01
Forum: General
Topic: Question about threads and mutexes
Replies: 8
Views: 1118

Question about threads and mutexes

dim shared as boolean finished=false dim shared as string string1, string2 string1="1" : string2="2" sub stringChange() do string2="'"+chr(128+rnd*64)+"'" swap string1, string2 loop until finished end sub screen 13 dim shared as any ptr stringChange_ptr=procp...
by Landeel
Jun 12, 2021 15:06
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 74
Views: 11704

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

It does work when I cross-compile for Windows and run it with wine.
by Landeel
Jun 12, 2021 14:04
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 74
Views: 11704

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

I couldn't get 'SET_GL_SCALE' to work even with this workaround. The work-around works for me. Can you post (short) sample code to compare between fbc 1.07.3 and 1.08.0? Fix for screencontrol committed in fbc 1.08.1 (fbc-1.08 branch) & fbc 1.09.0 (master branch) I'm on Lubuntu 22.04. Tried comp...
by Landeel
Jun 11, 2021 14:15
Forum: Community Discussion
Topic: FreeBASIC 1.08.0 Release Discussion (June 2021)
Replies: 74
Views: 11704

Re: FreeBASIC 1.08.0 Release Discussion (June 2021)

I switched to 1.08.0, and found this bug. Hmmm. I wrote the new gfx SCREENCONTROL API entry points wrong .. so that sucks. They are ok for GET functions but not SET. The mistake is obvious now that you have pointed it out, thank-you. If you do want to test other parts of version 1.08.0 you can use ...
by Landeel
May 11, 2021 14:04
Forum: General
Topic: getjoystick and hot-plugging
Replies: 0
Views: 882

getjoystick and hot-plugging

Getjoystick doesn't work when you hotplug a joystick. That's something most modern games support.
Getjoystick is in the gfxlib, right? I guess it enumerates the joysticks on initialization.
Is there a way to force it to re-initialize when a new joystick is detected?
by Landeel
Dec 31, 2020 13:31
Forum: Game Dev
Topic: Kung Fu Er San (on Steam)
Replies: 3
Views: 4343

Kung Fu Er San (on Steam)

Here's another game I'm working on.
Inpired by Konami's Yie Ar Kung Fu.

Image
https://youtu.be/6NqCGcyvoL0