Search found 306 matches

by lassar
Jul 03, 2018 11:36
Forum: Community Discussion
Topic: How do I convert old vga fonts to drawstring font?
Replies: 6
Views: 1926

Re: How do I convert old vga fonts to drawstring font?

I figured out how to improve the vga font using xbrz 2x scaler.

Does DrawString support transparency using alpha mode?
by lassar
Jul 02, 2018 3:43
Forum: Community Discussion
Topic: How do I convert old vga fonts to drawstring font?
Replies: 6
Views: 1926

How do I convert old vga fonts to drawstring font?

I have some vga 8x16 fonts, that I want to convert to drawstring fonts.

I can convert them easy enough to bitmap fonts.

They will need to be anti-aliased, and then converted to drawstring fonts.

Any idea how I can anti-alias them, and then convert them to drawstring fonts?
by lassar
Jun 25, 2018 11:27
Forum: General
Topic: How you use a shader in freebasic?
Replies: 4
Views: 810

How you use a shader in freebasic?

I am wanting to use either a hq2x OR xbrz GLSL shader in freebasic.

The best I can figure out is to maybe use opengl.

Does anyone have any code examples to use a shader in freebasic?

If one doubles the resolution, what happens to the relative size of the mouse cursor?
by lassar
Feb 15, 2018 19:53
Forum: Linux
Topic: How do I detect if a file is symbolic link?
Replies: 6
Views: 7524

Re: How do I detect if a file is symbolic link?

I was going the .bi files, and found readlink function. #LANG "fblite" #include "file.bi" #include "dir.bi" #include "crt/linux/unistd.bi" DECLARE FUNCTION GetRealink$(FilePath$) PRINT "Get real path of /lib/libm.so.6" DirName$ = GetRealink$("/l...
by lassar
Feb 15, 2018 16:10
Forum: Linux
Topic: How do I detect if a file is symbolic link?
Replies: 6
Views: 7524

How do I detect if a file is symbolic link?

How do I detect if a file is symbolic link?

Can you detect a symbolic link using DIR()?
by lassar
Jan 02, 2018 4:08
Forum: Linux
Topic: How do I install freebasic in ubuntu xenial?
Replies: 4
Views: 3468

How do I install freebasic in ubuntu xenial?

How do I install freebasic in ubuntu xenial?

I have checked the forum and all the post is rather old.

What I need to know about is the dependences.
by lassar
May 17, 2017 17:41
Forum: Linux
Topic: Question about gcc internal library
Replies: 10
Views: 2788

Re: Question about gcc internal library

I am talking about the gcc runtime library, not the freebasic runtime. There are several programs in linux that uses lots of string compares, and string functions. Examples of these are bash, awk, sed, and python. Inline assembly for string operations are about 10 to 20 times faster, than regular c ...
by lassar
May 16, 2017 14:51
Forum: Linux
Topic: Question about gcc internal library
Replies: 10
Views: 2788

Question about gcc internal library

I am thinking about using assembly in the gcc internal libray to speed up gcc output binaries. It seems to me that all the internal library is done in c code, and none in assembly. I found out, in speeding up RadioTelephone Tutor, I had to redo the most simple routines in assembly. And example of th...
by lassar
Apr 30, 2017 1:18
Forum: Sources, Examples, Tips and Tricks
Topic: VRC1100 Remote control software
Replies: 0
Views: 1121

VRC1100 Remote control software

Linux program for VRC-1100 remote controls. Should work for other mce remotes. But not tested on any other remotes. Makes it so the device driver is automatically gotten. Replaces old keynames with new keynames. Shells out to ir-keytable to make this work. #LANG "fblite" #include "dir...
by lassar
Apr 26, 2017 17:20
Forum: Linux
Topic: What is the best freebasic IDE for 2017?
Replies: 7
Views: 4761

Re: What is the best freebasic IDE for 2017?

At first I thought the ubuntu version of xchm could not do context help. After 10 to 30 attempts, I got xchm to work. Here is the deal, you need quotes around the chm file location. Won't work without the quotes. In "context action" put: xchm "file:/home/username/freebasic/FB-manual-1...
by lassar
Apr 26, 2017 2:16
Forum: Linux
Topic: What is the best freebasic IDE for 2017?
Replies: 7
Views: 4761

Re: What is the best freebasic IDE for 2017?

It's tricky to get the "context action" to work.

I thought, that kchmviewer is the best chm viewer.

But now, it crashes on me, and it crashes every time I try to use it.

I guess I will have to try to get xchm to work instead.
by lassar
Apr 24, 2017 22:39
Forum: Linux
Topic: What is the best freebasic IDE for 2017?
Replies: 7
Views: 4761

Re: What is the best freebasic IDE for 2017?

I did some googling, and found that, you can use geany with kchmviewer to get context help. Go to Edit, Preferences, Tools, Context Action. Set it to "kchmviewer --sindex %s /chm-path" Go to Edit, Preferences, Keybindings, go to edit section, "Context Action", press "Change ...
by lassar
Apr 21, 2017 16:54
Forum: Linux
Topic: What is the best freebasic IDE for 2017?
Replies: 7
Views: 4761

What is the best freebasic IDE for 2017?

I am a newbie at using freebasic in linux.

What is the best linux freebasic IDE ?

Looking for one that you can pull up the help section by pressing F1 .
by lassar
Feb 12, 2016 18:52
Forum: General
Topic: Any thing I should know about converting from fb 24 to fb 1.0 ?
Replies: 6
Views: 991

Re: Any thing I should know about converting from fb 24 to fb 1.0 ?

Since the problem only occurs in windowed mode, here is the full mode & window mode code. The code works perfectly in full screen mode. WindowTitle "RadioTelephone Tutor" IF FullScreen% = 1 THEN SCREENRES 640,480,32,,&H01 OR AltEnter& OR GFX_HIGH_PRIORITY VideoPtr = SCREENPTR I...
by lassar
Feb 12, 2016 17:41
Forum: General
Topic: Any thing I should know about converting from fb 24 to fb 1.0 ?
Replies: 6
Views: 991

Re: Any thing I should know about converting from fb 24 to fb 1.0 ?

The program is 4992 lines long.

I have tried shorter code. Been unable to reproduce problem in shorter code.

Problem only appears in windowed mode.

The mouse only acts wacky in windowed mode.

I am looking for tips and tricks for getting it to work in FBC 1.05