MwStringPrintIntoBuffer
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
87c870a6c0
commit
35d2b4bb76
21 changed files with 233 additions and 331 deletions
|
|
@ -103,9 +103,9 @@ static void mouse_up(MwWidget handle, void* ptr) {
|
|||
if(e->mouse.x >= (w - e->right)) {
|
||||
char s[512];
|
||||
if(e->mouse.y >= (h / 2)) {
|
||||
sprintf(s, "%g", atof(str) - 1);
|
||||
MwPrintIntoBuffer(s, 512, "%g", atof(str) - 1);
|
||||
} else {
|
||||
sprintf(s, "%g", atof(str) + 1);
|
||||
MwPrintIntoBuffer(s, 512, "%g", atof(str) + 1);
|
||||
}
|
||||
MwSetText(handle, MwNtext, s);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue