Cleanup: spelling in comments
This commit is contained in:
@@ -212,8 +212,8 @@ void *GHOST_DropTargetWin32::getDropDataAsFilenames(IDataObject *pDataObject)
|
||||
STGMEDIUM stgmed;
|
||||
HDROP hdrop;
|
||||
|
||||
/* Check if dataobject supplies the format we want.
|
||||
* Double checking here, first in getGhostType. */
|
||||
/* Check if data-object supplies the format we want.
|
||||
* Double checking here, first in #getGhostType. */
|
||||
if (pDataObject->QueryGetData(&fmtetc) == S_OK) {
|
||||
if (pDataObject->GetData(&fmtetc, &stgmed) == S_OK) {
|
||||
hdrop = (HDROP)::GlobalLock(stgmed.hGlobal);
|
||||
@@ -257,7 +257,7 @@ void *GHOST_DropTargetWin32::getDropDataAsString(IDataObject *pDataObject)
|
||||
STGMEDIUM stgmed;
|
||||
|
||||
/* Try unicode first.
|
||||
* Check if dataobject supplies the format we want. */
|
||||
* Check if data-object supplies the format we want. */
|
||||
if (pDataObject->QueryGetData(&fmtetc) == S_OK) {
|
||||
if (pDataObject->GetData(&fmtetc, &stgmed) == S_OK) {
|
||||
LPCWSTR wstr = (LPCWSTR)::GlobalLock(stgmed.hGlobal);
|
||||
|
||||
@@ -467,9 +467,9 @@ inline void GHOST_SystemWin32::handleKeyboardChange(void)
|
||||
|
||||
for (m_hasAltGr = false, i = 32; i < 256; ++i) {
|
||||
s = VkKeyScanEx((char)i, m_keylayout);
|
||||
/* `s == -1` means no key that translates passed char code
|
||||
* high byte contains shift state. bit 2 ctrl pressed, bit 4 alt pressed
|
||||
* if both are pressed, we have AltGr keycombo on keylayout. */
|
||||
/* `s == -1` means no key that translates passed char code high byte contains shift state.
|
||||
* bit 2 Control pressed, bit 4 `Alt` pressed if both are pressed,
|
||||
* we have `AltGr` key-combination on key-layout. */
|
||||
if (s != -1 && (s & 0x600) == 0x600) {
|
||||
m_hasAltGr = true;
|
||||
break;
|
||||
|
||||
@@ -169,7 +169,7 @@ extern unsigned int (*MEM_get_memory_blocks_in_use)(void);
|
||||
/** Reset the peak memory statistic to zero. */
|
||||
extern void (*MEM_reset_peak_memory)(void);
|
||||
|
||||
/** Get the peak memory usage in bytes, including mmap allocations. */
|
||||
/** Get the peak memory usage in bytes, including `mmap` allocations. */
|
||||
extern size_t (*MEM_get_peak_memory)(void) ATTR_WARN_UNUSED_RESULT;
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
Reference in New Issue
Block a user