Page 1 of 2

Download PF_0_8_1 bugfixes

PostPosted: Jul 16, 2005 @ 3:21am
by BIGBEN

PostPosted: Jul 18, 2005 @ 5:10am
by BIGBEN
This is the second version, it contains all the previous and one additional fix. Thanks to fast_rx it eliminates unwanted behaviour of your game running on background (not active).

It saves a lot of CPU by just sleeping while running on background.

:idea: Users of PocketFrog_0_7_x :idea: could also download this file. After downloading just look in game.cpp lines 179&180.
Those two lines should be added to your src\framework\game.cpp, in my case after the line 211.
Lines 431 & 439 from the game.cpp of this package will also make your life easier.

Hope you find it useful ;)

PostPosted: Jul 18, 2005 @ 10:35am
by DaGGeR
Very nice! Also it can be good idea post not only bugfixes but improvements too. For example i remember FillPoly function of PF is VERY slow. Maybe anyone can optimise it?

PostPosted: Jul 18, 2005 @ 6:37pm
by Kzinti

PostPosted: Jul 19, 2005 @ 5:21am
by BIGBEN
This package contains all the previous bugfixes and improvements and the following new.
This time I killed some drawing bugs:

1.The DrawVLine(...) drew 1 additional pixel at the bottom.
2.The DrawRect(...) redrew 2 pixels at the upper left and at the lower left.
3.The DrawRect(...) drew the rect with incorrect dimensions (+1 pixel for height and +1 pixel for width).

The following instructions are for the users of the previous versions of PF (non 0_8_1):

Users of PocketFrog_0_7_x could also download this fix.
Please look into the algo2d.h, line 443 of this package and replace the line in your src\internal\algo2d.h with this line (in 0_7_0 it is line 365).

Now take a look at rasterizer.cpp from this package. Lines 561, 562, 563 & 564. Replace lines in src\rasterizer.cpp (in 0_7_0 674 to 677 lines) with them.

Have a nice lib recompilation ;)

PostPosted: Jul 19, 2005 @ 6:19am
by BIGBEN

getting an error re: I2DRasterizer when I try to build lib

PostPosted: Aug 3, 2005 @ 1:55pm
by Conan
I downloaded the current latest PF & HAL and added the version 3 sources above. When I try to build PocketFrog I get one error:-
BlitAlpha' : is not a member of 'I2DRasterizer'
see declaration of 'I2DRasterizer'
This is to do with the enhancements I guess and I suppose my raster2d.h is not up to date?

Can anyone clear this up?

PostPosted: Aug 3, 2005 @ 5:25pm
by BIGBEN

PostPosted: Aug 3, 2005 @ 7:14pm
by BIGBEN

PostPosted: Aug 4, 2005 @ 3:37pm
by Conan

PostPosted: Aug 4, 2005 @ 4:10pm
by BIGBEN

PostPosted: Aug 7, 2005 @ 3:25am
by fast_rx

PostPosted: Aug 7, 2005 @ 7:17am
by BIGBEN
Thanks to fast_rx :) this bugfix contains two fixes for AlphaRaster2D::BlitAlpha in raster2d.cpp.

For users of previous versions of PF(non PHal) - open raster2d.cpp from this bugfix package; then find(ctrl-F), type "error" and you will find two lines that should be pasted into your old raster2d.cpp(if it already contain alphablit functions).

P.S. If you find this constant bugfix updates disturbing (since you need to rebuild all your lib files each time) you can wait until you would like to package setup.exe for your game. So come to this post and download the most recent bugfix. :wink:

Do a rebuild all when rebuilding the PocketFrog library

PostPosted: Aug 8, 2005 @ 10:43am
by Conan

PostPosted: Sep 10, 2005 @ 12:25pm
by BIGBEN