02-04-2005, 03:43 PM
Here you go:
http://www.ecplusplus.com/index.php?page...fxlib2.zip
Holds latest gfxlib CVS snapshot compiled for Win32, together with latest documentation. Just overwrite the libfbgfx.a in your freebasic/lib/win32 directory with the one shipped within this package.
Differences from the gfxlib shipped with FB 0.11:
- New GDI driver for Win32; this is used automatically if the DirectX one fails to initialize (DX not installed on the system) and only supports windowed mode.
- Added support for the FBGFX environmental variable; set it to the name of the driver you want to be tried first. If specified driver fails or cannot be found, the usual automatic driver selection path is used.
- Added new instrinsic SCREENINFO function, to get informations on current mode like size, depth, name of the driver being used, etc.
- Fixed bug in coordinates rounding for negative values; PUT(-1,0) was drawing at (0,0) due to this bug (thanks rel for pointing this out)
- Fixed bug for which SCREENPTR always returned the current visible page memory pointer, instead of the current work page pointer (thanks again to rel for the bug report)
- Fixed coordinates rounding bugs in DRAW, now drawn figures should look as they are supposed to. Also, DRAW now accepts (and skips) spaces and tabs inside the commands string (thanks to steven_basic for the report)
- Various fixes to the X11 driver: was not working if the X server was running in 24bpp mode; had memory leaks if the Xshm extension was not used; mouse and keyboard input were still working if window did not have focus; mouse cursor was not hidden in fullscreen mode.
- Some other small fixes I don't recall now...
Pay attention: since a new GDI driver was added, your programs will now have to be linked against gdi32.dll... The 0.11 fbc compiler doesn't know about this, so you have to manually tell it to link in that library:
This will not be needed in next FB release as the compiler will automatically link in gdi32 when gfxlib is used.
http://www.ecplusplus.com/index.php?page...fxlib2.zip
Holds latest gfxlib CVS snapshot compiled for Win32, together with latest documentation. Just overwrite the libfbgfx.a in your freebasic/lib/win32 directory with the one shipped within this package.
Differences from the gfxlib shipped with FB 0.11:
- New GDI driver for Win32; this is used automatically if the DirectX one fails to initialize (DX not installed on the system) and only supports windowed mode.
- Added support for the FBGFX environmental variable; set it to the name of the driver you want to be tried first. If specified driver fails or cannot be found, the usual automatic driver selection path is used.
- Added new instrinsic SCREENINFO function, to get informations on current mode like size, depth, name of the driver being used, etc.
- Fixed bug in coordinates rounding for negative values; PUT(-1,0) was drawing at (0,0) due to this bug (thanks rel for pointing this out)
- Fixed bug for which SCREENPTR always returned the current visible page memory pointer, instead of the current work page pointer (thanks again to rel for the bug report)
- Fixed coordinates rounding bugs in DRAW, now drawn figures should look as they are supposed to. Also, DRAW now accepts (and skips) spaces and tabs inside the commands string (thanks to steven_basic for the report)
- Various fixes to the X11 driver: was not working if the X server was running in 24bpp mode; had memory leaks if the Xshm extension was not used; mouse and keyboard input were still working if window did not have focus; mouse cursor was not hidden in fullscreen mode.
- Some other small fixes I don't recall now...
Pay attention: since a new GDI driver was added, your programs will now have to be linked against gdi32.dll... The 0.11 fbc compiler doesn't know about this, so you have to manually tell it to link in that library:
Code:
fbc myprog.bas -l gdi32