Search found 306 matches

by lassar
Jul 17, 2018 19:53
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 5275

Re: Undefined reference to `PNG_LoadFile@16'

please show code if possible or if it's an existing example then post the name of the example and where it can be found. do you have libpnglib2.a in your FreeBASIC lib folder? Yes I got static library libpnglib2.a in my freebasic/win32 folder. The code is in Pnglib.zip: Link to download This is abo...
by lassar
Jul 17, 2018 19:48
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 5275

Re: Undefined reference to `PNG_LoadFile@16'

Use D.J.Peter's, FBImage instead, its far more recent (2017). See in Libraries: FBImage static Win/Lin 32/64-bit Doing some searching on the forum, won't hurt (but prevents such useless posts). (this is the last anwer, you'll get from me ... for such simple stuff) Simple my foot. I did search forum...
by lassar
Jul 17, 2018 19:47
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 5275

Re: Undefined reference to `PNG_LoadFile@16'

dodicat wrote:Get rid of the byvals in the include file by

#undef byval
#define byval
at the top of showpng3.bas above #lang "fblite"

But it runs with -gen gcc without changing anything.
It compiled, but did not show the png
by lassar
Jul 17, 2018 17:16
Forum: General
Topic: Undefined reference to `PNG_LoadFile@16'
Replies: 27
Views: 5275

Undefined reference to `PNG_LoadFile@16'

I am trying to get PngLib to work. (it's done in assembly)

If I remember right, I got it to work with no problem, on older versions of freebasic.

How do I fix this problem?

Here's a link to PngLib.

Could it be, that this version of freebasic 1.05 does not like PngLib2.a?
by lassar
Jul 17, 2018 17:06
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 2439

Re: How do get libhqx-1.dll to work?

I used DyLibLoad to load libhqx-1.dll , and change the parameters to by value.

Now it doesn't crash the program, but it still doesn't do anything.

For now I am giving up on this dll.

Maybe someone else can get it work.
by lassar
Jul 15, 2018 17:22
Forum: General
Topic: How do I convert TTF fonts to anti-aliased bitmap fonts?
Replies: 4
Views: 1409

How do I convert TTF fonts to anti-aliased bitmap fonts?

How do I to convert TTF font to ASCII bitmap font. (16 pixels wide by 32 pixels high,
variable width, and anti-alias) ?

Does anyone know of any programs to do this?
by lassar
Jul 14, 2018 7:31
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 2439

Re: How do get libhqx-1.dll to work?

You are right about the graphics screen, but it hangs.

When it comes to leaving the subroutine it hangs.

No way to leave the dll.
by lassar
Jul 14, 2018 1:48
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 2439

Re: How do get libhqx-1.dll to work?

On a related note, I have been trying to convert a program to a dll. Trying to create a JPEG loader dll. When I include the jpeg code in the program it displays the jpeg. But when I make a dll out of it, It won't display the jpeg. It looks like freebasic does not support graphics in dll's ! Tried cr...
by lassar
Jul 13, 2018 15:55
Forum: General
Topic: How do get libhqx-1.dll to work? (Solved)
Replies: 9
Views: 2439

How do get libhqx-1.dll to work? (Solved)

I have been trying to use libhqx-1.dll in a program. but all I get is the compiler
can't find libhqx-1.dll .

libhqx-1.dll is in the same directory as the program.

How do I fix this?
by lassar
Jul 12, 2018 0:35
Forum: General
Topic: How do you do a directx wrapper?
Replies: 1
Views: 618

How do you do a directx wrapper?

I have been trying to figure out how to improve my 640 by 480 program. Think the fonts would look better in the 1280 by 960 32 bit resolution. To avoid a lot of work, I think a directx wrapper with hq2x scaler would be the easiest way. Does anyone know of a directx wrapper that already does this. If...
by lassar
Jul 12, 2018 0:17
Forum: General
Topic: Can't get 1280x960 screen mode working
Replies: 7
Views: 1289

Re: Can't get 1280x960 screen mode working

I expect that making chances in scale and layout would affect
the desktop and GDI programs, but not in full screen mode.

Did not change the dpi settings.

This is definitely a microsoft bug.
by lassar
Jul 10, 2018 20:58
Forum: General
Topic: A directx wrapper that can scale 2x?
Replies: 0
Views: 1174

A directx wrapper that can scale 2x?

Does anyone know of a directx wrapper that can scale 2x

Preferably hq2x?

I have a program with a 640x480 resolution screen I want to scale up to 1280x960.
by lassar
Jul 10, 2018 14:09
Forum: General
Topic: Can't get 1280x960 screen mode working
Replies: 7
Views: 1289

Re: Can't get 1280x960 screen mode working

I found the bug.

It's microsoft's bug!

In display setting, had the scale and layout at 150%

Did not change the dpi settings.

This did not mess with 640x480, but messed up 1280x960.

I hate bugs, especially microsoft bugs.
by lassar
Jul 09, 2018 2:51
Forum: General
Topic: Can't get 1280x960 screen mode working
Replies: 7
Views: 1289

Can't get 1280x960 screen mode working

Have been using a 640x480 fullscreen resolution in a program. Trying to get double the fullscreen resolution, for better looking fonts. Have a windows 10 intel computer with intel graphics. My monitor's resolution is 1920 by 1080. Did a ScreenList(32) and it shows 1280x960 as a valid resolution. Loa...
by lassar
Jul 04, 2018 0:47
Forum: Community Discussion
Topic: Any examples of directx loading shaders?
Replies: 1
Views: 862

Any examples of directx loading shaders?

Looking for directx examples loading pixel shaders.

Want to use directx to load pixel art scalers to resize pixel art.

Anyone have any examples?