forked from KolibriOS/kolibrios
notify: small fix for redraw
git-svn-id: svn://kolibrios.org@4064 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
415e0de801
commit
097d6ce9a3
@ -78,21 +78,32 @@ _next:
|
|||||||
$loop _next
|
$loop _next
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DrawBackground()
|
||||||
|
{
|
||||||
|
PutPaletteImage(shadow_buf_32+8,WIN_SIZE_X,WIN_SIZE_Y,0,0,32,0);
|
||||||
|
PutPixel(0,0,ESDWORD[lighter_pixel1]);
|
||||||
|
PutPixel(0,WIN_SIZE_Y-1,ESDWORD[lighter_pixel2]);
|
||||||
|
}
|
||||||
|
|
||||||
void GetBackground()
|
void GetBackground()
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
static int was_once;
|
||||||
|
|
||||||
|
if (was_once)
|
||||||
|
{
|
||||||
|
DrawBackground();
|
||||||
|
return;
|
||||||
|
}
|
||||||
for (i=1; i<=6; i++)
|
for (i=1; i<=6; i++)
|
||||||
{
|
{
|
||||||
|
was_once = 1;
|
||||||
ShadowImage(shadow_buf_24, WIN_SIZE_X, WIN_SIZE_Y, 1);
|
ShadowImage(shadow_buf_24, WIN_SIZE_X, WIN_SIZE_Y, 1);
|
||||||
if (i%2 == 0) ShadowImage(lighter_pixel1, 1, 1, 1);
|
if (i%2 == 0) ShadowImage(lighter_pixel1, 1, 1, 1);
|
||||||
if (i%2 == 0) ShadowImage(lighter_pixel2, 1, 1, 1);
|
if (i%2 == 0) ShadowImage(lighter_pixel2, 1, 1, 1);
|
||||||
from24to32(shadow_buf_24, shadow_buf_32+8, WIN_SIZE_X, WIN_SIZE_Y);
|
from24to32(shadow_buf_24, shadow_buf_32+8, WIN_SIZE_X, WIN_SIZE_Y);
|
||||||
Text();
|
Text();
|
||||||
PutPaletteImage(shadow_buf_32+8,WIN_SIZE_X,WIN_SIZE_Y,0,0,32,0);
|
DrawBackground();
|
||||||
PutPixel(0,0,ESDWORD[lighter_pixel1]);
|
|
||||||
PutPixel(0,WIN_SIZE_Y-1,ESDWORD[lighter_pixel2]);
|
|
||||||
pause(5);
|
pause(5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user