Search found 415 matches
- Mar 13, 2011 6:10
- Forum: General
- Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
- Replies: 6
- Views: 2629
- Mar 12, 2011 18:15
- Forum: General
- Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
- Replies: 6
- Views: 2629
@kiyotewolf: I'll def have to take a look at that. Thanks. @counting_pine: Thanks for your help. It's much appreciated. Come to find out though that these gfx were actually created using SCREEN 7 and a custom palette. If you could be so kind and give me the same RGB dump for this code I'd really ap...
- Mar 11, 2011 20:38
- Forum: Archive
- Topic: Positif - Relsoft question
- Replies: 16
- Views: 5613
- Mar 11, 2011 20:34
- Forum: General
- Topic: Need Help Obtaining Mode 13h Default Palette RGB Values
- Replies: 6
- Views: 2629
Need Help Obtaining Mode 13h Default Palette RGB Values
I'm writing an iPhone program to load image files from some of my old QB/FB projects. What I need to do this, however, is a listing of all the RGB values for the default palette in mode 13h. Unfortunately, I'm on a mac, so I can't easily generate this listing myself through code, so I'm hoping someo...
- Dec 27, 2008 6:14
- Forum: Community Discussion
- Topic: Alternative Logo Set for FreeBASIC
- Replies: 16
- Views: 5909
- Nov 15, 2008 7:05
- Forum: General
- Topic: Overloading Class Methods
- Replies: 1
- Views: 1431
Overloading Class Methods
So, I stumbled upon the fact that FB doesn't require class methods to be explicitly overloaded: type myClass as integer dummy declare sub method(value as integer) declare sub method(text as string) end type sub myClass.method(value as integer) ? value end sub sub myClass.method(text as string) ? tex...
- Nov 08, 2008 11:29
- Forum: General
- Topic: Bit(lhs,Rhs)
- Replies: 10
- Views: 2491
You might be wondering why -1 is returned instead of 1, but it's because -1 is a standard BASIC value for True. It's the number you get if you set all the bits in a signed integer, while 0 is what you get if you clear all the bits, and you can easily flip between the two values using the NOT operat...
- Oct 29, 2008 17:46
- Forum: Beginners
- Topic: True and False variables
- Replies: 19
- Views: 5020
- Oct 25, 2008 2:12
- Forum: General
- Topic: Non-standard syntax
- Replies: 8
- Views: 3008
Another macro that could be very useful would is the FOR ... EACH for linked lists: FOR i AS foo = EACH foo ... NEXT FB doesn't support linked lists natively so there's no reason to natively support iterator syntax. This should actually be supplied with the linked list library that you use. For my ...
- Oct 17, 2008 4:43
- Forum: General
- Topic: is there any string replacement function in FB
- Replies: 34
- Views: 9151
@PaulSquires, my speed tests show that your optimization is indeed faster. Thanks for pointing this out. I will use this from now on. @counting_pine, your powers of optimization never cease to impress. I would probably clean the code up a bit for readability, but I'm pretty sure I follow your logic/...
- Oct 16, 2008 9:40
- Forum: General
- Topic: is there any string replacement function in FB
- Replies: 34
- Views: 9151
I wrote a string replacement function, only to find this lovely thread. After reviewing the various submissions here, I modified my own to be a bit more compact and complete. ' ============================================================================= ' Name: str_replace (10.16.08) ' Returns: str...
- Oct 07, 2008 3:50
- Forum: General
- Topic: A String as screenbuffer
- Replies: 11
- Views: 3219
Why are you trying to do this? I can't think of any situations where you'd want to LTRIM an image buffer. Because clearly he has a very limited understanding of how accessing video memory works. Questions like this come from a clear lack of understanding. There really isn't a parallel to computer p...
- Oct 03, 2008 17:56
- Forum: Beginners
- Topic: Data types
- Replies: 3
- Views: 1887
There was actually a HUGE discussion on this very topic not too many months ago. I've always been for type suffixes, though after being forced not to use them in order to take advantage of FBs full instruction set, I have become accustomed to not using them. However, I still feel, among other things...
- Sep 30, 2008 16:28
- Forum: General
- Topic: Better ENUMs
- Replies: 6
- Views: 1998
- Sep 30, 2008 12:25
- Forum: General
- Topic: Better ENUMs
- Replies: 6
- Views: 1998
Better ENUMs
I've recently started using enums and believe they would be much more powerful if you could somehow access the first, last and count values associated with the enum . ex: enum myEnum a,b,c,d,e,f,g end type ? enumFirst(myEnum) 'prints "0" ? enumLast(myEnum) 'prints "6" ? enumCount...