JyCet
Member
Hi all,
I've updated all my lib with the last Prebuilt library packages for my devkit.
The speed are boosted around 15% to 20%, it's fantastic ! But it dont resolve my program crash when I test to use circleColor(...); of sdl_gfx library
I've included SDL_gfx lib in my makefile
Added header #include <SDL_gfxPrimitives.h> in my program
use it here:
CODE
void fade_out()
{
printf("debut fade out\n");
Uint32 Pnoir = SDL_MapRGB(lcd_back->format, 0, 0, 0);
printf("copie lcd\n");
SDL_BlitSurface(lcd_back,0,bg_tmp,0);
signed int rayon = 200;
printf("premier cercle\n");
circleColor(bg_tmp, 160, 120, rayon, Pnoir);
int Exit = 0;
printf("debut boucle\n");
while(!Exit){
if (rayon<0) Exit=1;
SDL_BlitSurface(bg_tmp,0,lcd_back,0);
circleColor(bg_tmp, 160, 120, rayon, Pnoir);
rafraichir_ecran();
--rayon;
}
printf("fin fade out\n");
}
I've no error at compilation ... but the program crash at circleColor(bg_tmp, 160, 120, rayon, Pnoir);
Any suggestion or help are welcome
JYCET
I've updated all my lib with the last Prebuilt library packages for my devkit.
The speed are boosted around 15% to 20%, it's fantastic ! But it dont resolve my program crash when I test to use circleColor(...); of sdl_gfx library
I've included SDL_gfx lib in my makefile
Added header #include <SDL_gfxPrimitives.h> in my program
use it here:
CODE
void fade_out()
{
printf("debut fade out\n");
Uint32 Pnoir = SDL_MapRGB(lcd_back->format, 0, 0, 0);
printf("copie lcd\n");
SDL_BlitSurface(lcd_back,0,bg_tmp,0);
signed int rayon = 200;
printf("premier cercle\n");
circleColor(bg_tmp, 160, 120, rayon, Pnoir);
int Exit = 0;
printf("debut boucle\n");
while(!Exit){
if (rayon<0) Exit=1;
SDL_BlitSurface(bg_tmp,0,lcd_back,0);
circleColor(bg_tmp, 160, 120, rayon, Pnoir);
rafraichir_ecran();
--rayon;
}
printf("fin fade out\n");
}
I've no error at compilation ... but the program crash at circleColor(bg_tmp, 160, 120, rayon, Pnoir);
Any suggestion or help are welcome
JYCET