Search found 302 matches

by lassar
Mar 02, 2014 20:47
Forum: Libraries
Topic: Can't get jpeg libray to work in fblite
Replies: 1
Views: 668

Can't get jpeg libray to work in fblite

I have been having to get the jpeg example to work in LANG "fblite" The code compiles okay, but when it tries to run, it crashes. #LANG "FBLITE" #include "fbgfx.bi" #include "jpeglib.bi" const SCR_W = 640 const SCR_H = 480 const SCR_BPP = 32 declare function i...
by lassar
Mar 02, 2014 18:26
Forum: General
Topic: Bug in fbgfx.bi causing compiler error
Replies: 2
Views: 470

Re: Bug in fbgfx.bi causing compiler error

Thanks for helping me for the above code.

I got the jpeg example to compile in fblite.

No luck on getting it, to actually work.

It crashes on me.
by lassar
Mar 02, 2014 17:05
Forum: General
Topic: Bug in fbgfx.bi causing compiler error
Replies: 2
Views: 470

Bug in fbgfx.bi causing compiler error

When trying to get the jpeg library, I found a bug in fbgfx.bi I narrowed down the code in the jpeg example causing this error. #LANG "fblite" #include "fbgfx.bi" declare function imageread_jpg( byval filename as zstring ptr, _ byval bpp as integer ) as FB.IMAGE ptr Here is the e...
by lassar
Oct 27, 2013 18:46
Forum: Libraries
Topic: Latest SDL and SDL Mixer does not work in Freebasic
Replies: 1
Views: 811

Latest SDL and SDL Mixer does not work in Freebasic

I tried the latest SDL and SDL_mixer dlls, and they do not work in freebasic. Got SDL.dll could not be found. The new sdl.dll is now sdl2.dll. Then new SDL_mixer.dll is now SDL_mixer2.dll. I know what you are thinking now, go ahead and rename the #inclib "SDL" and #inclib "SDL_mixer&q...
by lassar
Oct 16, 2013 0:16
Forum: General
Topic: Is there a bug with REDIM PRESERVE.
Replies: 3
Views: 445

Is there a bug with REDIM PRESERVE.

I am having crashes with REDIM PRESERVE. It prints out a bunch of junk on the screen, and crashes on the following line. PRINT TextFiles$(6) Will someone test my code and see if they have problems with it too. #LANG "FBLITE" SUB DirFiles(F$(),Mask$,Total&) DF$ = DIR$(Mask$) WHILE DF$<>...
by lassar
Aug 01, 2013 16:15
Forum: General
Topic: Program crahes from FBIDE, but not from clicking on it.
Replies: 3
Views: 324

Re: Program crahes from FBIDE, but not from clicking on it.

Don't know why that helps, but it doesn't seem to be crashing from the fbide now.

Go figure.
by lassar
Aug 01, 2013 15:17
Forum: General
Topic: Program crahes from FBIDE, but not from clicking on it.
Replies: 3
Views: 324

Program crahes from FBIDE, but not from clicking on it.

When using FBIDE, I compile and run my windows program it runs, and crashes. I think what causes it to crash is it cannot find a file or files. But when I click on the program file in a folder, it runs properly, and does not crash. I tried reinstalling FBIDE, but no luck. What is going on here? Any ...
by lassar
Jul 28, 2013 22:44
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

Added Multikey function to this code.
by lassar
Jul 27, 2013 1:01
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

- Weird line: "MouseCodeSize = EndMouseStart -EndMouseStart" (always 0!) "GetMouseInfoStart = @GetMouseInfo" (GetMouseInfoStart is not used!) Thanks for finding the error. I just revised the version to include the fix to this. dim MouseCodeSize as uinteger dim MouseStart as uint...
by lassar
Jul 26, 2013 15:27
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

Added space after commas.

Broke up that long line.

I am using FBIDE format for identation.
by lassar
Jul 26, 2013 1:36
Forum: Tips and Tricks
Topic: FBGFX to OpenGL (Use FBGFX along with OpenGL)
Replies: 14
Views: 4312

Re: FBGFX to OpenGL (Use FBGFX along with OpenGL)

I tried it and got a error on compile.

opengl_22.bas(369) error 40: Variable not declared, GL_UNSIGNED_INT_8_8_8_8 in 'glTexSubImage2D (GL_TEXTURE_2D,0, 0, 0, TEX_WIDTH, TEX_HEIGHT,GL_RGBA,GL_UNSIGNED_INT_8_8_8_8, p_texture_data)'
by lassar
Jul 24, 2013 23:41
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

It looks like the misspelling has been fixed, but the other points haven't been (fully) addressed.. All things considered, I think lower-case will probably be more consistent with existing examples. All in all, I think I have addressed all of your concerns. Changed it from fblite to fb. Fixed the s...
by lassar
Jul 24, 2013 16:02
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

Okay here's the 6th revised version. Added Multikey function Fixed the 5 compiler warnings on pointers Fixed CodeSize '============================================================================= ' Mouse Routines in Vesa Mode Ver 2.1 ' By Randall L Glass ' Public domain ' '=========================...
by lassar
Jul 23, 2013 16:34
Forum: Tips and Tricks
Topic: Mouse & Vesa routines: shows mouse without flicker
Replies: 13
Views: 2848

Re: Mouse & Vesa routines: shows mouse without flicker

I just put in a feature request for it to be put into the dos examples section of freebasic.
by lassar
Jul 23, 2013 16:16
Forum: DOS
Topic: Which is the fastest DPMI extender for freebasic?
Replies: 8
Views: 2620

Re: Which is the fastest DPMI extender for freebasic?

Finally managed to get pmode/dj to work. Maybe I was using the wrong version or something.

In dosbox, it seems to be about 4 to 8 times faster then cswdpmi.

My program, now runs halfway decent at 100 cycles in DosBox.

Go to advanced search