notify: using #ifdef AUTOBUILD

git-svn-id: svn://kolibrios.org@3369 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Kirill Lipatov (Leency) 2013-03-12 21:36:50 +00:00
parent 8075b8b15d
commit 8fb756344e

View File

@ -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,6 +38,8 @@ 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;
#if !defined(AUTOBUILD)
{
shadow_buf = malloc(WIN_SIZE_X*WIN_SIZE_Y*3); shadow_buf = malloc(WIN_SIZE_X*WIN_SIZE_Y*3);
lighter_pixel1 = malloc(3); lighter_pixel1 = malloc(3);
lighter_pixel2 = malloc(3); lighter_pixel2 = malloc(3);
@ -48,6 +49,8 @@ void main()
ShadowImage(shadow_buf, WIN_SIZE_X, WIN_SIZE_Y, 4); ShadowImage(shadow_buf, WIN_SIZE_X, WIN_SIZE_Y, 4);
ShadowImage(lighter_pixel1, 1, 1, 1); ShadowImage(lighter_pixel1, 1, 1, 1);
ShadowImage(lighter_pixel2, 1, 1, 1); ShadowImage(lighter_pixel2, 1, 1, 1);
}
#endif
loop() loop()
{ {
@ -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: