Trick to bypass bug while copying images color palette - now seems that bugs are gone
This commit is contained in:
parent
7d61dfc476
commit
cb87129e98
Binary file not shown.
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 112 KiB |
|
@ -28,8 +28,8 @@ Module_Register dotflag_effect = { &dotflag_text,
|
|||
|
||||
|
||||
|
||||
#define NB_POINTS_X_FLAG 80
|
||||
#define NB_POINTS_Y_FLAG 40
|
||||
#define NB_POINTS_X_FLAG 100
|
||||
#define NB_POINTS_Y_FLAG 50
|
||||
#define NB_POINTS_TOTAL_FLAG (NB_POINTS_X_FLAG*NB_POINTS_Y_FLAG)
|
||||
#define SCALE 80
|
||||
|
||||
|
@ -50,17 +50,15 @@ extern bopti_image_t earthflag;
|
|||
|
||||
|
||||
|
||||
extern bopti_image_t DotFlag;
|
||||
|
||||
bopti_image_t* dotflag_miniature( void )
|
||||
{
|
||||
return &DotFlag;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
void dotflag_init( [[maybe_unused]] bopti_image_t *screen )
|
||||
{
|
||||
eye = libnum::num32( 150 );
|
||||
eye = libnum::num32( 180 );
|
||||
scale = libnum::num32( SCALE );
|
||||
eyescale = eye*scale;
|
||||
|
||||
|
@ -78,7 +76,7 @@ void dotflag_init( [[maybe_unused]] bopti_image_t *screen )
|
|||
Flag[i+j*NB_POINTS_X_FLAG].x = libnum::num32( -NB_POINTS_X_FLAG/2 * 0.04f + i * 0.04f );
|
||||
Flag[i+j*NB_POINTS_X_FLAG].y = libnum::num32( -NB_POINTS_Y_FLAG/2 * 0.04f + j * 0.04f );
|
||||
Flag[i+j*NB_POINTS_X_FLAG].z = libnum::num32(-1);
|
||||
Flag[i+j*NB_POINTS_X_FLAG].color = image_get_pixel( &earthflag, i*5, j*5);
|
||||
Flag[i+j*NB_POINTS_X_FLAG].color = image_get_pixel( &earthflag, i*4, j*4);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -124,7 +122,7 @@ void dotflag_render( [[maybe_unused]] bopti_image_t *screen )
|
|||
for (int i = 0; i < NB_POINTS_TOTAL_FLAG; i++)
|
||||
pixel( screen, FMorph[i].sx, FMorph[i].sy, Flag[i].color );
|
||||
|
||||
dimage( 0, 0, screen );
|
||||
dimage( 0, 0, screen );
|
||||
}
|
||||
|
||||
void dotflag_deinit( void )
|
||||
|
|
Loading…
Reference in a new issue