update header comment email; sync bug fixes into 'mc' version

main
Allen Webster 2024-01-19 19:36:38 -08:00
parent 08dc9c445d
commit 3638407c42
2 changed files with 1101 additions and 1099 deletions

View File

@ -1,7 +1,7 @@
/* /*
** Win32 Custom Window Example Program ** Win32 Custom Window Example Program
** v1.3.0 - May 8th 2020 ** v1.3.1 - Jan 19th 2024
** by Allen Webster allenwebster@4coder.net ** by Allen Webster allenw@mr4th.com
** **
** public domain example program ** public domain example program
** NO WARRANTY IMPLIED; USE AT YOUR OWN RISK ** NO WARRANTY IMPLIED; USE AT YOUR OWN RISK

View File

@ -1,7 +1,7 @@
/* /*
** Win32 Custom Window Example Program ** Win32 Custom Window Example Program
** v1.2 - April 30th 2020 ** v1.3.1 - Jan 19th 2024
** by Allen Webster allenwebster@4coder.net ** by Allen Webster allenw@mr4th.com
** **
** public domain example program ** public domain example program
** NO WARRANTY IMPLIED; USE AT YOUR OWN RISK ** NO WARRANTY IMPLIED; USE AT YOUR OWN RISK
@ -393,6 +393,9 @@ HasEvent(Input *input, Input_Event_Kind kind){
if (event->kind == kind){ if (event->kind == kind){
result = 1; result = 1;
*ptr_to = next; *ptr_to = next;
if (event == input->last_event){
input->last_event = last;
}
break; break;
} }
else{ else{
@ -400,7 +403,6 @@ HasEvent(Input *input, Input_Event_Kind kind){
last = event; last = event;
} }
} }
input->last_event = last;
} }
return(result); return(result);
} }