Search found 34 matches
- Sun 06 Nov 2011, 19:53
- Forum: Programming
- Topic: November 1, 2011: BaCon 1.0 build 24 released
- Replies: 13
- Views: 9075
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...
- Thu 08 Sep 2011, 22:29
- Forum: Programming
- Topic: BaCon Bits
- Replies: 167
- Views: 109685
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...
- Wed 15 Dec 2010, 20:50
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
- Tue 14 Dec 2010, 18:19
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Sun 12 Dec 2010, 22:03
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Sun 12 Dec 2010, 20:00
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
- Sun 12 Dec 2010, 15:29
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Sun 12 Dec 2010, 13:13
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Sat 11 Dec 2010, 17:08
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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 ...
- Sat 11 Dec 2010, 15:03
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Sat 11 Dec 2010, 11:26
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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
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
- Sat 11 Dec 2010, 09:41
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Fri 10 Dec 2010, 21:28
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Fri 10 Dec 2010, 13:20
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Thu 09 Dec 2010, 20:21
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
- Thu 09 Dec 2010, 20:06
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Wed 08 Dec 2010, 16:21
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
- Tue 07 Dec 2010, 08:50
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
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...
- Mon 06 Dec 2010, 08:36
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042
- Sat 04 Dec 2010, 10:09
- Forum: Programming
- Topic: BaCon - Bash-based Basic-to-C converter/compiler
- Replies: 525
- Views: 300042