mirror of
https://github.com/reactos/reactos.git
synced 2024-07-07 21:25:05 +00:00
[NTVDM]: Code formatting and add a warning about the usage of callbacks.
svn path=/trunk/; revision=64147
This commit is contained in:
parent
dcade423c6
commit
2f4bbc8355
|
@ -7,6 +7,14 @@
|
||||||
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
* Hermes Belusca-Maito (hermes.belusca@sfr.fr)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/******************************************************************************\
|
||||||
|
| WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING! WARNING!
|
||||||
|
|
|
||||||
|
| Callbacks support supposes implicitely that the callbacks are used
|
||||||
|
| in the SAME thread as the CPU thread, otherwise messing in parallel
|
||||||
|
| with the CPU registers is 100% prone to bugs!!
|
||||||
|
\******************************************************************************/
|
||||||
|
|
||||||
/* INCLUDES *******************************************************************/
|
/* INCLUDES *******************************************************************/
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
|
|
|
@ -121,7 +121,7 @@ static VOID MouseGetPacket(PMOUSE_PACKET Packet)
|
||||||
VOID MouseUpdatePosition(PCOORD NewPosition)
|
VOID MouseUpdatePosition(PCOORD NewPosition)
|
||||||
{
|
{
|
||||||
/* Update the counters */
|
/* Update the counters */
|
||||||
HorzCounter += ((NewPosition->X - Position.X) * WidthMm * Resolution) / WidthPixels;
|
HorzCounter += ((NewPosition->X - Position.X) * WidthMm * Resolution) / WidthPixels;
|
||||||
VertCounter += ((NewPosition->Y - Position.Y) * HeightMm * Resolution) / HeightPixels;
|
VertCounter += ((NewPosition->Y - Position.Y) * HeightMm * Resolution) / HeightPixels;
|
||||||
|
|
||||||
/* Update the position */
|
/* Update the position */
|
||||||
|
|
Loading…
Reference in a new issue