forked from KolibriOS/kolibrios
notify: using #ifdef AUTOBUILD
git-svn-id: svn://kolibrios.org@3369 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
8075b8b15d
commit
8fb756344e
@ -6,7 +6,6 @@
|
|||||||
#include "..\lib\mem.h"
|
#include "..\lib\mem.h"
|
||||||
#include "..\lib\figures.h"
|
#include "..\lib\figures.h"
|
||||||
|
|
||||||
|
|
||||||
int SCREEN_SIZE_X,
|
int SCREEN_SIZE_X,
|
||||||
SCREEN_SIZE_Y;
|
SCREEN_SIZE_Y;
|
||||||
|
|
||||||
@ -39,18 +38,22 @@ void main()
|
|||||||
//èçÿÿÿùíûé êîñòûëü, ðåàëèçóþùèé ìíîãîïîòî÷íîñòü :)
|
//èçÿÿÿùíûé êîñòûëü, ðåàëèçóþùèé ìíîãîïîòî÷íîñòü :)
|
||||||
while (GetPixelColor(SCREEN_SIZE_X-1, SCREEN_SIZE_X, WIN_Y)==0x333333) WIN_Y+=WIN_SIZE_Y+17;
|
while (GetPixelColor(SCREEN_SIZE_X-1, SCREEN_SIZE_X, WIN_Y)==0x333333) WIN_Y+=WIN_SIZE_Y+17;
|
||||||
|
|
||||||
shadow_buf = malloc(WIN_SIZE_X*WIN_SIZE_Y*3);
|
#if !defined(AUTOBUILD)
|
||||||
lighter_pixel1 = malloc(3);
|
{
|
||||||
lighter_pixel2 = malloc(3);
|
shadow_buf = malloc(WIN_SIZE_X*WIN_SIZE_Y*3);
|
||||||
CopyScreen(shadow_buf, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y, WIN_SIZE_X, WIN_SIZE_Y);
|
lighter_pixel1 = malloc(3);
|
||||||
CopyScreen(lighter_pixel1, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y, 1, 1);
|
lighter_pixel2 = malloc(3);
|
||||||
CopyScreen(lighter_pixel2, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y+WIN_SIZE_Y, 1, 1);
|
CopyScreen(shadow_buf, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y, WIN_SIZE_X, WIN_SIZE_Y);
|
||||||
ShadowImage(shadow_buf, WIN_SIZE_X, WIN_SIZE_Y, 4);
|
CopyScreen(lighter_pixel1, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y, 1, 1);
|
||||||
ShadowImage(lighter_pixel1, 1, 1, 1);
|
CopyScreen(lighter_pixel2, SCREEN_SIZE_X-WIN_SIZE_X-1, WIN_Y+WIN_SIZE_Y, 1, 1);
|
||||||
ShadowImage(lighter_pixel2, 1, 1, 1);
|
ShadowImage(shadow_buf, WIN_SIZE_X, WIN_SIZE_Y, 4);
|
||||||
|
ShadowImage(lighter_pixel1, 1, 1, 1);
|
||||||
|
ShadowImage(lighter_pixel2, 1, 1, 1);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
loop()
|
loop()
|
||||||
{
|
{
|
||||||
WaitEventTimeout(500);
|
WaitEventTimeout(500);
|
||||||
switch(EAX & 0xFF)
|
switch(EAX & 0xFF)
|
||||||
{
|
{
|
||||||
@ -66,7 +69,11 @@ void main()
|
|||||||
DefineButton(0,0, WIN_SIZE_X, WIN_SIZE_Y, 1+BT_HIDE+BT_NOFRAME, 0);
|
DefineButton(0,0, WIN_SIZE_X, WIN_SIZE_Y, 1+BT_HIDE+BT_NOFRAME, 0);
|
||||||
//draw_grid();
|
//draw_grid();
|
||||||
//PutShadow(0,0,WIN_SIZE_X,WIN_SIZE_Y, 0, 4);
|
//PutShadow(0,0,WIN_SIZE_X,WIN_SIZE_Y, 0, 4);
|
||||||
_PutImage(0,0,WIN_SIZE_X,WIN_SIZE_Y,shadow_buf);
|
#ifdef AUTOBUILD
|
||||||
|
{ draw_grid(); }
|
||||||
|
#else
|
||||||
|
{ _PutImage(0,0,WIN_SIZE_X,WIN_SIZE_Y,shadow_buf); }
|
||||||
|
#endif
|
||||||
PutPixel(0,0,ESDWORD[lighter_pixel1]);
|
PutPixel(0,0,ESDWORD[lighter_pixel1]);
|
||||||
PutPixel(0,WIN_SIZE_Y-1,ESDWORD[lighter_pixel2]);
|
PutPixel(0,WIN_SIZE_Y-1,ESDWORD[lighter_pixel2]);
|
||||||
DrawBar(WIN_SIZE_X,0, 1, WIN_SIZE_Y, 0x333333);
|
DrawBar(WIN_SIZE_X,0, 1, WIN_SIZE_Y, 0x333333);
|
||||||
@ -89,7 +96,7 @@ void main()
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
void draw_grid()
|
:void draw_grid()
|
||||||
{
|
{
|
||||||
int x, y;
|
int x, y;
|
||||||
|
|
||||||
@ -99,13 +106,9 @@ void draw_grid()
|
|||||||
{
|
{
|
||||||
if (! y&1) && (! x&1) PutPixel(x, y, 0);
|
if (! y&1) && (! x&1) PutPixel(x, y, 0);
|
||||||
if ( y&1) && ( x&1) PutPixel(x, y, 0);
|
if ( y&1) && ( x&1) PutPixel(x, y, 0);
|
||||||
//PutPixel(x, y, GetPixelColor(SCREEN_SIZE_X-WIN_SIZE_X+x, SCREEN_SIZE_X, y));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
stop:
|
stop:
|
||||||
|
Loading…
Reference in New Issue
Block a user