Search found 130 matches

by DamageX
May 19, 2016 6:04
Forum: Community Discussion
Topic: Frustrated and need to discuss...
Replies: 69
Views: 6846

Re: Frustrated and need to discuss...

so, for instance, you might advocate for a 'sprite' type of command to easily handle images as sprites, but... I'm not sure what you mean by a 'sprite' command. Would this be similar to PUT? not advocate for 'bload/bsave' to handle PNG files? If someone wants to add it, I would not be opposed to th...
by DamageX
May 19, 2016 5:35
Forum: Community Discussion
Topic: Frustrated and need to discuss...
Replies: 69
Views: 6846

Re: Frustrated and need to discuss...

Adding more built-in functions to FB is all well and good... but reading/writing particular file formats is something that can already be implemented in FB without using external libraries. (I'm going to make my own PNG decoder sooner or later, to incorporate in a couple of projects.) Higher priorit...
by DamageX
May 18, 2016 7:28
Forum: Windows
Topic: SCREEN 8, COLOR behavior
Replies: 5
Views: 1246

Re: SCREEN 8, COLOR behavior

I hadn't thought to try SCREENRES for such 'legacy' modes... but it does work. Great news for EGA fans (they exist right?) thanks.
by DamageX
May 15, 2016 22:16
Forum: Windows
Topic: SCREEN 8, COLOR behavior
Replies: 5
Views: 1246

SCREEN 8, COLOR behavior

Under SCREEN 12 or higher (or SCREEN 0), one can use COLOR to set the foreground and background colors for text that is subsequently PRINTed. However under SCREEN 8 the last value specified for the background color affects the entire screen instead. Is there a way to get the same functionality in SC...
by DamageX
Apr 21, 2016 6:50
Forum: DOS
Topic: using SHELL to spawn another prog...
Replies: 3
Views: 2340

using SHELL to spawn another prog...

Under win32 I can use the SHELL command to launch WGET multiple times from within my FB program to download files. This works. Under DOS... not so much. WGET will launch (and writes its text output all over my graphic screen) but crashes frequently. I suspect the DOS version of WGET itself is also 3...
by DamageX
Mar 20, 2016 5:19
Forum: General
Topic: How to save/load PNG files?
Replies: 47
Views: 7748

Re: How to save/load PNG files?

This is where PNG really shines as it can detect patterns in the image and store the pattern... this same image stores as a 679 BYTE PNG file!!!! I haven't tried implementing a PNG codec before, but what I've read is that the pixels are converted to a delta (value of current pixel minus the previou...
by DamageX
Mar 06, 2016 4:55
Forum: Linux
Topic: getmouse causes segmentation fault
Replies: 12
Views: 2442

Re: getmouse causes segmentation fault

D.J.Peters wrote:Is it Debian jessie 32 or 64-bit ?
Is it 32 or 64-bit FreeBASIC 1.05 ?
Is it a PC or a ARM device ?
32-bit x86
Dose it crash in the text console or with screen / screenres ?
The test program crashes when launched from a MATE terminal window. It does not use screen/screenres.
by DamageX
Mar 06, 2016 1:49
Forum: Linux
Topic: getmouse causes segmentation fault
Replies: 12
Views: 2442

Re: getmouse causes segmentation fault

The fault appeared when running the compiled program. As I said, the problem resulted from any use of GETMOUSE. For instance: Dim as integer a,b,c,d getmouse a,b,c,d or alternatively: Dim as integer a,b,c,d,e e=getmouse(a,b,c,d) The Live distro does not update the file system on the USB stick. Every...
by DamageX
Feb 28, 2016 22:32
Forum: Linux
Topic: getmouse causes segmentation fault
Replies: 12
Views: 2442

getmouse causes segmentation fault

Out of curiosity, I tried to use FB 105 on a Debian jessie live distro. For the most part I could not compile anything because of "cannot find ..." errors, but I noticed one thing that might be a bug. Any use of GETMOUSE causes a segmentation fault.
by DamageX
Jan 25, 2016 5:13
Forum: Sources, Examples, Tips and Tricks
Topic: basic JPEG decoder- and encoder
Replies: 3
Views: 2243

Re: basic JPEG decoder

Here is the encoder. It does two passes which is a bit of a time waster. But it uses the first pass to generate custom huffman tables. It does not do chroma subsampling. It only outputs files with size conforming to 8x8 multiple. One interesting thing I discovered was that you can't fill the quantiz...
by DamageX
Jan 18, 2016 0:33
Forum: Community Discussion
Topic: The new look forum
Replies: 45
Views: 8090

Re: The new look forum

FYI, I have no interest in updating anything. It's all rubbish these days.
by DamageX
Jan 16, 2016 9:56
Forum: Community Discussion
Topic: The new look forum
Replies: 45
Views: 8090

Re: The new look forum

Image
This is how it looks here. There is a lot of whitespace.
by DamageX
Dec 09, 2015 5:15
Forum: DOS
Topic: Issues in real DOS on a 486
Replies: 17
Views: 8611

Re: Issues in real DOS on a 486

Replacing an old IDE harddisk with a Compact Flash card could speed things up.
by DamageX
Sep 30, 2015 6:52
Forum: Sources, Examples, Tips and Tricks
Topic: basic JPEG decoder- and encoder
Replies: 3
Views: 2243

Re: basic JPEG decoder

changed the decoder portion to use only integer math and combined multiple steps together for efficiency #lang "fblite" option gosub option explicit dim shared as ushort rstint,s dim shared as ubyte a,r,g,b,cnum,sambits,bbits,bcom,dbuf,ybh,ybv dim shared as integer x,y,z,ff1,h,v,l,xx,yy,zz...
by DamageX
Sep 27, 2015 4:43
Forum: General
Topic: use fbgfx framebuffer as an array?
Replies: 7
Views: 1325

Re: use fbgfx framebuffer as an array?

Isn't safe using an array hack for screen pixels. A row or pitch from gfx screen or image is always a multiple of 16 bytes. All the usual screen modes are a multiple of 16 bytes wide as it is. But for unusual sizes (eg. 402x300 ?) the array dimensions would have to account for padding to reach a 16...