Search found 193 matches

by elsairon
Jul 01, 2012 7:09
Forum: Windows
Topic: Win 7, in fullscreen mode using Alt+Enter ends program
Replies: 8
Views: 977

Re: Win 7, in fullscreen mode using Alt+Enter ends program

I used a tool called Process Monitor (procmon.exe) from Sysinternals and was able to generate a csv logfile of a compiled version of the program, from start to finish. The log is 22k odd lines of system operations. The program sits idle after creating it's thread, and then 5 seconds later (when I us...
by elsairon
Jul 01, 2012 6:00
Forum: Windows
Topic: Win 7, in fullscreen mode using Alt+Enter ends program
Replies: 8
Views: 977

Re: Win 7, in fullscreen mode using Alt+Enter ends program

Can you test this using the "GDI" graphic driver? setenviron("fbgfx=GDI") screen 17,,,1 ? "Hello World" do loop @ fxm - Using this code still ends the program for me with Alt+Enter. @ MichaelW - I'm not sure where that is and I'll start searching, thanks. [edit] I'm ab...
by elsairon
Jul 01, 2012 5:57
Forum: Game Dev
Topic: Where is link to binding for libtcod 1.5.1 for freebasic?
Replies: 2
Views: 946

Where is link to binding for libtcod 1.5.1 for freebasic?

I have not been able to find a link to the FB Binding for libtcod 1.5.1 as mentioned in another thread.

Anyone know where that might be?
by elsairon
Jul 01, 2012 5:22
Forum: Windows
Topic: Win 7, in fullscreen mode using Alt+Enter ends program
Replies: 8
Views: 977

Re: Win 7, in fullscreen mode using Alt+Enter ends program

Here is code that exemplifies the problem better.

Run the program, then press Alt + Enter.

This ends the program for me, (on Win 7)

However, with the do...loop trapping there should be no exit, as far as I understand.

Code: Select all

screen 17,,,1
? "Hello World"
do
loop
by elsairon
Jun 30, 2012 6:28
Forum: Windows
Topic: Win 7, in fullscreen mode using Alt+Enter ends program
Replies: 8
Views: 977

Win 7, in fullscreen mode using Alt+Enter ends program

Here is a simple demonstration that shows switching screen from normal to full works correctly when following the code. However, using Alt+Enter, which normally toggles fullscreen in windows applications causes the FB program to exit. Is there something I could add to the code to prevent the program...
by elsairon
Jun 09, 2012 3:38
Forum: General
Topic: Color display error in fullscreen mode Win 7[SOLVED]
Replies: 4
Views: 374

Re: Color display error in fullscreen mode

Thanks Richard, I'll give that a try.

edit: Using 32 bpp and defining the colors fixes the problem. Thanks again Richard.
by elsairon
Jun 09, 2012 0:58
Forum: General
Topic: Color display error in fullscreen mode Win 7[SOLVED]
Replies: 4
Views: 374

Re: Color display error in fullscreen mode

Hmmm. Is this an error in the compiler, or is there a more robust way to define colors so they work in both normal and full screen modes?
by elsairon
Jun 09, 2012 0:40
Forum: General
Topic: Project layout
Replies: 34
Views: 2739

Re: Project layout

I use a separate .bas file for each different section of code that has a distinct purpose, with a header file for each. Then I only need to include the dear files when one file needs to access functions in another file. Currently my game code is separated into these files, with some having only a fe...
by elsairon
Jun 09, 2012 0:19
Forum: General
Topic: Color display error in fullscreen mode Win 7[SOLVED]
Replies: 4
Views: 374

Color display error in fullscreen mode Win 7[SOLVED]

I made this little program to dump a small selection of colors I'm planning to use for a game. However I noticed that when I switch to fullscreen using alt+enter (win 7) some of the colors are displayed incorrectly even though the displayed rgb values remain correct. Does this happen for anyone else...
by elsairon
May 22, 2011 5:43
Forum: General
Topic: File I/O issues [solved, hardware problem]
Replies: 13
Views: 1572

i figured out a way to make it alot more tolerant i had another file open (i have the logfile open constantly) never opening the logfile added alot more tolerance to the whole thing now i can run a small block fall cascade, blow up a few TNTs and no issues if i do heavier stuff, it will still bug o...
by elsairon
May 14, 2011 21:16
Forum: General
Topic: I have some code that needs to be fixed
Replies: 6
Views: 1206

Re: New code that needs to be changed listed

I'm not a programer at could some please help me fix this code. change to a single digit Now add 1 add 9 = 10. Now reduce it to (1) for E01 To clarify what you mean by 'change to a single digit'. Is this the normal numerological method where one adds all the digits of a number together, repeating u...
by elsairon
May 08, 2011 1:13
Forum: Beginners
Topic: Having trouble learning function pointers [SOLVED]
Replies: 2
Views: 732

MichaelW wrote:Something like this ?


Yes. Thank you Michael.
by elsairon
May 08, 2011 0:05
Forum: Beginners
Topic: How to structure If/Else?
Replies: 5
Views: 959

Re: How to structure If/Else?

Of course you see the problem. If the first condition is true then both lines get executed accomplishing nothing. I went through help looking for if/else formats trying every combination I can think of and keep getting "Else without If" errors. Can someone point me in the right direction? It's been...
by elsairon
May 07, 2011 23:57
Forum: Beginners
Topic: Having trouble learning function pointers [SOLVED]
Replies: 2
Views: 732

Having trouble learning function pointers [SOLVED]

I'm trying to make a function that accepts some values and another function as a parameter, to learn about function pointers. I have read several of the posts about function pointers and I'm not understanding the correct syntax for dimensioning and assigning function pointers. I'm not sure how to fi...
by elsairon
May 06, 2011 20:03
Forum: General
Topic: Can a macro generate enum from list of string variables?[NO]
Replies: 7
Views: 1034

rdc wrote:Here is a little example of what I was talking about:


Thanks rdc. I will see what I can learn from this. :)

(edit) I really appreciate your sharing this, I am studying your example carefully.

Go to advanced search