Search found 5652 matches

by dodicat
Apr 07, 2019 9:14
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1677

Re: fbGFX: BUG in Paint statement

A transparent circle fails with paint because it overlaps a pixel at the top and bottom thus producing two leaking points. (Turn the wheel magnifier to see the right hand circle) An alternative Bresenham circle avoids this. Type Pt As Long x,y End Type Sub GetCircle(xm As Integer, ym As Integer, r A...
by dodicat
Apr 07, 2019 2:57
Forum: General
Topic: fbGFX: BUG in Paint statement
Replies: 46
Views: 1677

Re: fbGFX: BUG in Paint statement

using opaqueness: It only takes one pixel overlap in a perimeter to leak, because this pixel will be a different colour Using line()-(),b overlaps at each corner. see the faint lines at the corners here Const As UShort wid = 1024, hei = 768, cd = 32, pg = 2, sflg = 64 ScreenRes(wid, hei, cd, pg, sfl...
by dodicat
Apr 07, 2019 1:35
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

To be correct, you should static as string array() Then redim preserve and load it on the first run. Declare Function comp( s as string ) as string screen 19 do dim as string s = "123456" dim as string ans = comp(s) print "ANS "; ans sleep loop until inkey = chr(27) function comp...
by dodicat
Apr 06, 2019 22:42
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

Hi Albert. You could try this looper. Folders and file names should have no spaces. If you loop too many the folder name becomes too long, so just a few loops. #Include "dir.bi" #include "file.bi" #inclib "zlib1" Extern "C" Declare Function compressBound(Byval...
by dodicat
Apr 05, 2019 3:12
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

If your compress algo receives a filename as parameter and saves the compressed file with extension filename .fbz example mytext.txt is compressed and saved as mytext.txt.fbz Then you could try this #Include "dir.bi" #include "file.bi" Sub string_split(Byval s As String,chars As ...
by dodicat
Apr 05, 2019 1:43
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

Hi Albert. if you put a fresh extracted distro of freebasic ("freebasic-1.06.0-win64") somewhere and use my compressor, it compresses to 26.9 mb from 138 mb. It takes about a minute due to all the printing. The only error I made in my previous code was dim as long counter should have been ...
by dodicat
Apr 04, 2019 23:31
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

Try this Albert. Create a folder (I call mine folder1) with some files. You can have other folders containing files inside folder1 also. #inclib "zlib1" here, you will have a different name I think. Then run this code beside your folder. #Include "dir.bi" #include "file.bi&q...
by dodicat
Apr 03, 2019 12:30
Forum: Tips and Tricks
Topic: Spring is in the air.
Replies: 11
Views: 862

Re: Spring is in the air.

I see that someboby was having trouble with the screen command.
https://www.freebasic.net/forum/viewtopic.php?f=6&t=27522&p=259628&hilit=screenres#p259628
Different circumstances, but maybe you could try Screenres 800,600,32,,64 in the Spring and screenres in the sorts.
by dodicat
Apr 03, 2019 0:33
Forum: Tips and Tricks
Topic: Spring is in the air.
Replies: 11
Views: 862

Re: Spring is in the air.

Hi Makoto WATANABE.

I normally use quick run on fbide.
Win 10 may take up to 30 seconds to run an unknown .exe, depending on your antivirus settings.
After the first run it should behave normally.
by dodicat
Apr 03, 2019 0:27
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

Hi Albert. I have been messing around with Python coding. Regarding injecting a string into a .exe file, freebasic has loads of repititions of stuff like "GCC: (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project)" in 64 bit .exe files. You can use this section of the exe to write your own ...
by dodicat
Mar 31, 2019 10:58
Forum: Documentation
Topic: Intrinsic defines
Replies: 9
Views: 462

Re: Intrinsic defines

An old adage here is "Too many cooks spoil the broth". For fxm perhaps "Trop de cuisiniers gâtent la sauce" This is why I don't interfere and clutter the documentation pages. But I do read fxm's posts, and liked the threading articles. Also liked Mr Swiss's little change to my co...
by dodicat
Mar 29, 2019 11:18
Forum: General
Topic: GCC compiler question
Replies: 3
Views: 256

Re: GCC compiler question

UEZ As an observation only: I have also noticed the repeats of this string in the .exe file. Even in the tiny shell64.exe from (shell "cmd" as the .bas file) gives me 24 repeats. Larger .exe files (64 bit) give many more repeats. The -gen gas equivalent string is "GCC: (i686-win32-sjl...
by dodicat
Mar 26, 2019 13:33
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

Albert. To decompress, the first few characters of a compressed file are lengh+"|" examples 1231| 23| 109776| If you cut off this bit the de-compressor doesn't get fed the length of the string, thus returns an error. If you view the first few characters of a compressed file you will see wh...
by dodicat
Mar 24, 2019 11:53
Forum: General
Topic: Squares
Replies: 6383
Views: 365569

Re: Squares

badidea wrote:Without a working decompressor, your compressor is just a fancy hash generator.

Looking into cryogenics I note that people will pay about 200000 dollars for the process, and for the less well heeled, about 80000 dollars a head (literally).
So these half way processes have value.
by dodicat
Mar 23, 2019 21:12
Forum: Tips and Tricks
Topic: Spring is in the air.
Replies: 11
Views: 862

Spring is in the air.

Some old routines amalgamated with some very old. After reading some guff about compression algorithms, I decide to ignore all the gobbledegook and follow a true compressor (Robert Boyle), who simply called compression of air -- the natural spring of air--, and no doubt, If he was here now, he would...

Go to advanced search