mirror of
https://github.com/Zeal-Operating-System/ZealOS.git
synced 2025-01-13 16:16:31 +00:00
Add arrow key mouse movement to 32BitPaint, reassign canvas clear key to End.
This commit is contained in:
parent
5b99114ef1
commit
935ea2219d
1 changed files with 9 additions and 6 deletions
|
@ -163,7 +163,7 @@ I0 Paint32()
|
||||||
"$$BLUE$$Ctrl-S$$FG$$ to save image.\n"
|
"$$BLUE$$Ctrl-S$$FG$$ to save image.\n"
|
||||||
"$$BLUE$$Ctrl-L$$FG$$ to load image.\n\n"
|
"$$BLUE$$Ctrl-L$$FG$$ to load image.\n\n"
|
||||||
"$$GREEN$$Left-click or SPACE$$FG$$ to draw.\n\n"
|
"$$GREEN$$Left-click or SPACE$$FG$$ to draw.\n\n"
|
||||||
"$$RED$$ENTER$$FG$$ to clear image.\n"
|
"$$RED$$END$$FG$$ to clear image.\n"
|
||||||
"$$RED$$Shift-Esc or Double Right-Click$$FG$$ to exit.");
|
"$$RED$$Shift-Esc or Double Right-Click$$FG$$ to exit.");
|
||||||
Sleep(250); // help ensure SPACE press doesn't draw early
|
Sleep(250); // help ensure SPACE press doesn't draw early
|
||||||
|
|
||||||
|
@ -215,17 +215,25 @@ I0 Paint32()
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SC_CURSOR_LEFT:
|
case SC_CURSOR_LEFT:
|
||||||
|
mouse.pos.x--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SC_CURSOR_RIGHT:
|
case SC_CURSOR_RIGHT:
|
||||||
|
mouse.pos.x++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SC_CURSOR_UP:
|
case SC_CURSOR_UP:
|
||||||
|
mouse.pos.y--;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SC_CURSOR_DOWN:
|
case SC_CURSOR_DOWN:
|
||||||
|
mouse.pos.y++;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case SC_END:
|
||||||
|
MemSet(paint.fb, WHITE32, text.buffer_size);
|
||||||
|
MemSet(text.fb_alias, WHITE32, text.buffer_size);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -260,11 +268,6 @@ I0 Paint32()
|
||||||
paint.color = gr_palette[ch - '0'];
|
paint.color = gr_palette[ch - '0'];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case '\n':
|
|
||||||
MemSet(paint.fb, WHITE32, text.buffer_size);
|
|
||||||
MemSet(text.fb_alias, WHITE32, text.buffer_size);
|
|
||||||
break;
|
|
||||||
|
|
||||||
case CH_CTRLS:
|
case CH_CTRLS:
|
||||||
PaintSaveImage;
|
PaintSaveImage;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue