📄 cursor.cpp
字号:
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Copyright (c) 1995-2000 Microsoft Corporation. All rights reserved.
Module Name: cursor.cpp
Abstract:
Functions:
Notes:
--*/
#include "headers.h"
//#define PIXEL_POINTER
SCODE
Au1100LCD::SetPointerShape(GPESurf *pMask, GPESurf *pColorSurf, int xHot, int yHot, int cx, int cy)
{
if (m_pMode == NULL)
return S_OK;
// save hotspot values to use in MovePointer function to properly place the cursor
m_nXHot = xHot;
m_nYHot = yHot;
#ifndef PIXEL_POINTER
m_cursor->SetSWCursorShape(pMask, cx, cy);
#endif
return S_OK;
}
SCODE
Au1100LCD::MovePointer(int x, int y)
{
//RETAILMSG(1,(TEXT("x,y %d,%d %08X\r\n"), x, y, m_Reg->intstatus));
//if (m_Reg->lcd_intstatus & 0x20) m_Reg->intstatus = ~0;
#ifdef PIXEL_POINTER
{
int pixel;
pixel = (y * m_LineSizeInBytes) + ((x * m_ModeInfo.Bpp) / 8);
*(unsigned short *)(m_pLAW + pixel) ^= ~0; /*0x5555;*/
}
#else
m_cursor->MoveSWCursor(x, y, m_nXHot, m_nYHot);
#endif
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -