MouseEnable -> MouseHardEnable

increased cursor arrow thickness to 2
This commit is contained in:
xmm15 2020-02-21 17:30:17 -06:00
parent 390b8530dd
commit 95039cbdcf
9 changed files with 479 additions and 493 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -594,7 +594,7 @@ U0 Fault2(I64 fault_num,I64 fault_err_code)
if (Fs->debug_task)
CallExtNum(EXT_DEBUG_RESUME,fault_num,fault_err_code);
else {
was_mouse_enabled = CallExtStr("MouseEnable", FALSE);
was_mouse_enabled = CallExtStr("MouseHardEnable", FALSE);
was_raw=Raw(ON);
was_silent=Silent(OFF);
text.raw_flags|=RAWF_SHOW_DOLLAR|RAWF_SCROLL;
@ -616,7 +616,7 @@ U0 Fault2(I64 fault_num,I64 fault_err_code)
DebugMode(was_in_debug);
Silent(was_silent);
Raw(was_raw);
CallExtStr("MouseEnable", was_mouse_enabled);
CallExtStr("MouseHardEnable", was_mouse_enabled);
text.raw_flags=old_raw_flags;
}
SingleUser(was_single_user);

File diff suppressed because one or more lines are too long

View File

@ -528,7 +528,7 @@ extern U0 KbdMouseInit();
extern I64 KbdMessagesQueue();
public extern U0 KbdTypeMatic(U8 delay);
extern Bool MouseHardDriverInstall();
public extern Bool MouseEnable(Bool val=TRUE);
public extern Bool MouseHardEnable(Bool val=TRUE);
public extern I64 PressAKey();
public extern I64 ScanChar();
public extern Bool ScanKey(I64 *_ch=NULL,I64 *_scan_code=NULL,Bool echo=FALSE);

View File

@ -291,7 +291,7 @@ U0 KbdMouseReset()
kbd.reset=FALSE;
}
Bool MouseEnable(Bool val=TRUE)
Bool MouseHardEnable(Bool val=TRUE)
{
Bool old_val = mouse_hard.enabled;
if (val)

View File

@ -299,9 +299,13 @@ public U0 DrawStdMouse(CDC *dc,I64 x,I64 y)
{//This is a callback. See $LK,"::/Demo/Graphics/Grid.CC"$.
//Called by $LK,"DrawMouse",A="MN:DrawMouse"$() which is
//called by $LK,"WinFinalUpdate",A="MN:WinFinalUpdate"$().
dc->thick=1;
dc->flags&=~(DCF_TRANSFORMATION|DCF_SYMMETRY);
GrArrow3(dc,x+8,y+8,0,x,y,0);
dc->thick=2;
 GrArrow3(dc,x+10,y+10,0,x,y,0);
// GrLine3(dc, x, y, 0, x + 13, y + 6, 0);
// GrLine3(dc, x, y, 0, x + 6, y + 13, 0);
// GrLine3(dc, x + 13, y + 6, 0,x + 6, y + 13, 0);
//GrLine3(dc, x + 11, y + 11, 0, x + 15, y + 15, 0);
}
gr.fp_draw_mouse=&DrawStdMouse;