Search found 1563 matches

by DrV
Jul 20, 2008 23:41
Forum: Sources, Examples, Tips and Tricks
Topic: Some code to load any image to a FB image (using FreeImage)
Replies: 29
Views: 13847

Is that the actual case ("ex" vs "Ex") ?
by DrV
Jul 20, 2008 23:28
Forum: Sources, Examples, Tips and Tricks
Topic: Flood Filler
Replies: 22
Views: 5643

In what case would you need to know if the screen is locked? The only case I can come up with is checking whether the screen is locked, then locking it if it isn't. If that's the case, just always call SCREENLOCK/UNLOCK - with the reference counting patch that just went in, this will automatically l...
by DrV
Jul 20, 2008 21:15
Forum: Linux
Topic: FB on Fedora9_x86_64?
Replies: 16
Views: 11797

I looked into this a little more; I think the main problem is that we are using our own linker script (elf_i386.x) instead of the system-wide one. For example, the linker script on my x86_64 Gentoo installation has different lib paths than our script. I think in non-standalone builds we should not s...
by DrV
Jul 20, 2008 21:10
Forum: Sources, Examples, Tips and Tricks
Topic: Flood Filler
Replies: 22
Views: 5643

I committed the reference counting version of SCREENLOCK/SCREENUNLOCK in r4986; please test and report any problems.
by DrV
Jul 18, 2008 13:19
Forum: Sources, Examples, Tips and Tricks
Topic: Flood Filler
Replies: 22
Views: 5643

I think it wouldn't be too bad to just change SCREENLOCK/SCREENUNLOCK to have a reference counter internally, so something simple like this would work: SCREENLOCK ' ... SCREENLOCK ' screen stays locked ' draw stuff here SCREENUNLOCK ' screen is not yet unlocked ' ... SCREENUNLOCK ' screen is now unl...
by DrV
Jul 15, 2008 2:32
Forum: Linux
Topic: Xclipboard
Replies: 9
Views: 2978

http://standards.freedesktop.org/clipbo ... latest.txt might be somewhat helpful; I haven't done any X clipboard stuff myself.
by DrV
Jul 15, 2008 2:27
Forum: General
Topic: setting cursor shape?
Replies: 7
Views: 2440

The start, stop arguments of LOCATE should already work on DOS; on Windows, we can't set an exact start and stop, but I think it is possible to at least set the size of the cursor (this is not currently implemented, though).
by DrV
Jul 10, 2008 13:34
Forum: General
Topic: Line Input with unicode
Replies: 5
Views: 1400

The best solution (on the compiler side) is to change WSTRING so it is variable-length like STRING (I think this was discussed before, along with the other string rewrite/improvement stuff), but this is not helpful for you unless you want to help fix the compiler, sorry... :)
by DrV
Jul 09, 2008 21:20
Forum: DOS
Topic: The war on DGJPP bloat again | Helo word sizes | how to save
Replies: 17
Views: 14404

Not without modifications; at the very least, the rtlib initialization sets the FPU rounding mode and precision. Sad ... is this problem new to FB or is it present in DJGPP and FreePASCAL also ? The initialization is in the FB rtlib, not the DJGPP-provided stuff, so it's nothing to do with DJGPP or...
by DrV
Jul 08, 2008 18:08
Forum: DOS
Topic: The war on DGJPP bloat again | Helo word sizes | how to save
Replies: 17
Views: 14404

Would FB work without any FPU and without EMU387 if I avoid floats ? Not without modifications; at the very least, the rtlib initialization sets the FPU rounding mode and precision. There are other places that use floating-point parameters which might not be obvious, like graphics functions (PUT, f...
by DrV
Jul 08, 2008 0:46
Forum: General
Topic: GAS bug
Replies: 19
Views: 3814

Why not just write:

Code: Select all

Dim Shared As Uinteger QQ
QQ=&HFFFFFFFF
? QQ
QQ += 1
? QQ
End
This generates the same exact code...
by DrV
Jul 08, 2008 0:38
Forum: DOS
Topic: The war on DGJPP bloat again | Helo word sizes | how to save
Replies: 17
Views: 14404

The benefits of all that "bloat" can't be realized with small useless "Hello world" programs. The "linux emulation at source level" is probably very useful when porting sophisticated stuff from Linux (MPLAYER, *L*NKS, WGET, ...) , OTOH obviously useless for new develop...
by DrV
Jul 06, 2008 23:30
Forum: DOS
Topic: The war on DGJPP bloat again | Helo word sizes | how to save
Replies: 17
Views: 14404

Mostly that it's providing you with a complete 32-bit layer to access the common hardware (hdd, fdd, etc) which will be a good chunk of that 100k. All those micro-drivers that it provides or at very least, the pmode->rmode->pmode->memcpy gateway that it must do is not trivial or small. Isn't most o...
by DrV
Jul 05, 2008 17:04
Forum: General
Topic: How to detect locked screen buffer?
Replies: 20
Views: 4234

Read about race conditions and think again.