Search found 34 matches

by PjotAwake
Sun 06 Nov 2011, 19:53
Forum: Programming
Topic: November 1, 2011: BaCon 1.0 build 24 released
Replies: 13
Views: 9067

Folks, The BaCon binary also can be created using specific C compiler options. On my 32-bit system with GCC 4.5.2, the default way of compiling binary delivers a size of 407994 bytes. However, if compiled as follows: bacon.bash -o -O2 -o -s bacon ...the resulting size is 341760 bytes (gain of approx...
by PjotAwake
Thu 08 Sep 2011, 22:29
Forum: Programming
Topic: BaCon Bits
Replies: 167
Views: 109592

Hi Volhout, I get a compiler error that data is converted from pointer to integer. Whereas I defined data as a string. The problem is in the IMPORT definition of 'ftdi_write_data'. This is defined as follows: IMPORT ftdi_write_data(long,long,int) FROM library$ TYPE int As you can see, BaCon now expe...
by PjotAwake
Wed 15 Dec 2010, 20:50
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

I tried out your new HUG with everything from 54-108 and it worked nicely with all :)
Great! Thanks for letting know. I will upload this version as the new default.

Regards
Peter
by PjotAwake
Tue 14 Dec 2010, 18:19
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi seaside, So I am back :) It took quite some time to analyze this issue. It appears that Puppy Linux 4.2.1 and probably other Puppy versions use the Xft.dpi = 78 as a default. That means that the whole desktop including all individual applications are optimized for for this DPI setting. Nowadays a...
by PjotAwake
Sun 12 Dec 2010, 22:03
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Thanks seaside, Now I understand, and the good news is: I am able to reproduce the problem myself now! The DPI you are referring to is the Xft DPI, and not the global screen DPI. I'd like to offer you some time away from this for a day or so Well that is a coincidence, as tomorrow I will be away the...
by PjotAwake
Sun 12 Dec 2010, 20:00
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

EDIT: ran a check of Xorg to see if something is amiss with my end and got this- # xdpyinfo | grep dimensions dimensions: 1024x768 pixels (413x232 millimeters) # xdpyinfo | grep "dots per inch" resolution: 63x84 dots per inch # Well I really don't get this - you appear not to be running a...
by PjotAwake
Sun 12 Dec 2010, 15:29
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi seaside, This is impossible :? HUG uses gdk_screen_set_resolution now to set the font resolution. It always will set a dpi of 96 now and the fonts should be displayed accordingly... Are you really sure that you dowloaded the latest version and not the one in your browser cache or proxy cache? You...
by PjotAwake
Sun 12 Dec 2010, 13:13
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Thanks seaside, This is caused by the fact that HUG only takes care of DPI values below 100 :) So I have fixed this now too, I simply override the screen DPI for the HUG application with the default 96. As you can see the window gets a little bit bigger when the fonts are bigger, this is as designed...
by PjotAwake
Sat 11 Dec 2010, 17:08
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Thanks seaside, Now, can you tell me how you obtain that value '78.0' in the shown formula? If I know how this is calculated then HUG can solve the font issue.... Best regards Peter EDIT: never mind, got it, it is the default Xft size in Puppy. Therefore the resizing does not work on my Puppy Linux ...
by PjotAwake
Sat 11 Dec 2010, 15:03
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hm the first attempt looks the same to me. Now in the new HUG , can you first change line 280 from this: gdk_screen_set_resolution(gdk_screen_get_default(), settings/1024) to the following: gdk_screen_set_resolution(gdk_screen_get_default(), 78) As you can see we use 78 hardcoded here, this seems to...
by PjotAwake
Sat 11 Dec 2010, 11:26
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi seaside,

I may have found a solution. Can you try to compile the proxy program from Barry again, but using this HUG version?

Please let me know if the font scaling works with this.

Peter
by PjotAwake
Sat 11 Dec 2010, 09:41
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi seaside, Well this is good news and bad news. :? Good news: if I compare your new screenshot with the old one, I can see some improvement (see the screens below). I guess in your case you need to set the font size to an even lower value like 9. Bad news: on my desktop the fontsize really is 11 an...
by PjotAwake
Fri 10 Dec 2010, 21:28
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi seaside, My understanding then, is that unless added calls and Vovchik's dpi calculator are used, BaCon GUI applications will only render fonts properly in boxes when the user's desktop is set at 78 dpi. Well, indeed I also was thinking that the issue depended on the DPI. However, according to Vo...
by PjotAwake
Fri 10 Dec 2010, 13:20
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

I was wondering why the BaCon GUI rendering of fonts when the DPI is set above 78 is different than the rendering done by all the other programs. e.g. Gtkdialog, c compiled programs, python, etc.. (they all seem to render properly no matter what the DPI is set at.) Hi seaside, the rendering of font...
by PjotAwake
Thu 09 Dec 2010, 20:21
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Cool, is that is your beta directory already?
Yes, of course! :)
by PjotAwake
Thu 09 Dec 2010, 20:06
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

http://somuchdamage.com/stuff/dancingletters/small/A.gif http://somuchdamage.com/stuff/dancingletters/small/W.gif http://somuchdamage.com/stuff/dancingletters/small/E.gif http://somuchdamage.com/stuff/dancingletters/small/S.gif http://somuchdamage.com/stuff/dancingletters/small/O.gif http://somuchd...
by PjotAwake
Wed 08 Dec 2010, 16:21
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi piratesmack, So the variable argument lists are done. Example program: OPTION BASE 1 SUB demo (VAR arg$ SIZE amount) LOCAL x PRINT "Amount of incoming arguments: ", amount-1 FOR x = 1 TO amount PRINT arg$[x] NEXT END SUB ' No argument demo(0) ' One argument demo("abc") ' Three...
by PjotAwake
Tue 07 Dec 2010, 08:50
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

Hi piratesmack, Is there any way to make function arguments optional? Currently not, but it is something I am implementing as we speak. There are several ways to do it and I am looking into the best possibility. The idea is to use variable arguments of STRING type and then, within the sub or functio...
by PjotAwake
Mon 06 Dec 2010, 08:36
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

@piratesmack: well done! @big_bass & seaside: the reason why you have wrong filesizes now, is that you are downloading binary files. The original program was designed for ASCII text files. So the question is: can we do binary downloads with BaCon as well? Fortunately, yes, we can. There is an ex...
by PjotAwake
Sat 04 Dec 2010, 10:09
Forum: Programming
Topic: BaCon - Bash-based Basic-to-C converter/compiler
Replies: 525
Views: 299679

There are more ways to do that, this is one of them: OPTION COLLAPSE TRUE website$ = "www.yourwebsite.org" OPEN "files.txt" FOR READING AS myconfig WHILE NOT(ENDFILE(myconfig)) READLN dat$ FROM myconfig IF LEN(dat$) > 0 THEN total$ = CONCAT$(total$, " ", dat$) WEND CLOS...