introduce MWAPI
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit
This commit is contained in:
parent
77ca92452e
commit
2dd2c3870f
41 changed files with 189 additions and 166 deletions
|
|
@ -7,7 +7,7 @@ MwWidget inp;
|
|||
double stack[512];
|
||||
int sp = 0;
|
||||
|
||||
static void resize(MwWidget handle, void* client, void* user) {
|
||||
static void MWAPI resize(MwWidget handle, void* client, void* user) {
|
||||
int ww = MwGetInteger(handle, MwNwidth);
|
||||
int wh = MwGetInteger(handle, MwNheight) - MwGetInteger(inp, MwNheight);
|
||||
int i;
|
||||
|
|
@ -30,7 +30,7 @@ static void resize(MwWidget handle, void* client, void* user) {
|
|||
}
|
||||
}
|
||||
|
||||
static void activate(MwWidget handle, void* client, void* user) {
|
||||
static void MWAPI activate(MwWidget handle, void* client, void* user) {
|
||||
const char* n = MwGetText(handle, MwNtext);
|
||||
|
||||
if(('0' <= n[0] && n[0] <= '9') || n[0] == '.') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue