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__
|
||||
|
||||
@@ -135,7 +135,7 @@ struct VolumeGrid *BKE_volume_grid_add(struct Volume *volume,
|
||||
void BKE_volume_grid_remove(struct Volume *volume, struct VolumeGrid *grid);
|
||||
|
||||
/**
|
||||
* Openvdb crashes when the determinant of the transform matrix becomes too small.
|
||||
* OpenVDB crashes when the determinant of the transform matrix becomes too small.
|
||||
*/
|
||||
bool BKE_volume_grid_determinant_valid(double determinant);
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ static bool uv_rotation_in_clip_bounds_test(const TransInfo *t, const float angl
|
||||
pr[0] = cos_angle * uv[0] + sin_angle * uv[1];
|
||||
pr[1] = -sin_angle * uv[0] + cos_angle * uv[1];
|
||||
add_v2_v2(pr, center);
|
||||
/* TODO: udim support. */
|
||||
/* TODO: UDIM support. */
|
||||
if (pr[0] < 0.0f || 1.0f < pr[0]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user