Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 2870 → Rev 2869

/programs/other/graph/hello.cpp
1,3 → 1,4
 
#include "func.h"
#include "parser.h"
#include "kolibri.h"
44,7 → 45,7
double x1,y1,x2,y2;
char *funct = NULL;
 
char edit_path[1024];
char edit_path[256];
//Dword editbox_y = WND_H - 16, editbox_w = WND_W - 70;
edit_box mybox = {0,9*8-5,WND_H - 16-32,0xffffff,0x6a9480,0,0x808080,0,99,(dword)&edit_path,0};
 
376,6 → 377,7
kosBDVK bdvk;
int filePointer = 0;
 
Dword count;
int i,j,k;
double d;
Dword filesize, num_number;
551,12 → 553,14
 
void draw_window(void)
{
double xx0=0.0, yy0=0.0;
char str[80];
int i;
double xx0=0.0, yy0=0.0, xx,yy;
sProcessInfo info;
Dword wi, he;
void *p;
 
for (int i = 0; i < 1024; i++)
for (i = 0; i < 1024; i++)
info.rawData[i] = 0;
kos_ProcessInfo(&info, 0xFFFFFFFF);
 
572,11 → 576,12
mybox.top = he - 45;
mybox.width = wi - mybox.left - 80;
 
// start redraw
kos_WindowRedrawStatus(1);
kos_DefineAndDrawWindow(10,40,WND_W,WND_H, 0x33,0xFFFFFF,0,0,(Dword)full_head);
kos_WindowRedrawStatus(2);
kos_DefineAndDrawWindow(10,40,WND_W,WND_H,
0x33,0xFFFFFF,0,0,(Dword)full_head);
 
if (info.rawData[70]&0x04) return; //íè÷åãî íå äåëàòü åñëè îêíî ñõëîïíóòî â çàãîëîâîê
rtlDebugOutString("entering draw_window\n");
 
if (point_count == 0 && funct == NULL)
{
597,6 → 602,8
kos_DefineButton(wi - 70, mybox.top, 50, 12, 5, 0xc0c0c0);
kos_WriteTextToWindow(wi - 58, mybox.top + 4, 0, 0, (char*)str_editfile, strlen(str_editfile));
 
// end redraw
kos_WindowRedrawStatus(2);
}
 
void kos_Main()
670,9 → 677,11
kos_GetButtonID(button);
if (button == 1)
kos_ExitApp();
if (button == 5)
else if (button == 5)
{
LaunchTinypad();
}
}
}
}