minor coding style cleanup

This commit is contained in:
Ozkan Sezer 2020-10-25 03:55:02 +03:00
parent ba36eb0437
commit bfc80d83c2
2 changed files with 8 additions and 8 deletions

View File

@ -88,7 +88,7 @@ LONG APIENTRY cbAudioWriteEvent(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer,
debug_os2("DosPostEventSem(), rc = %u", ulRC); debug_os2("DosPostEventSem(), rc = %u", ulRC);
} }
return 1; // It seems, return value is not matter. return 1; /* It seems, return value is not matter. */
} }
LONG APIENTRY cbAudioReadEvent(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer, LONG APIENTRY cbAudioReadEvent(ULONG ulStatus, PMCI_MIX_BUFFER pBuffer,
@ -416,7 +416,7 @@ static int OS2_OpenDevice(_THIS, void *handle, const char *devname,
} }
/* Write buffers to kick off the amp mixer */ /* Write buffers to kick off the amp mixer */
/*pAData->ulQueuedBuf = 1;//stMCIBuffer.ulNumBuffers;*/ /*pAData->ulQueuedBuf = 1;//stMCIBuffer.ulNumBuffers */
ulRC = pAData->stMCIMixSetup.pmixWrite(pAData->stMCIMixSetup.ulMixHandle, ulRC = pAData->stMCIMixSetup.pmixWrite(pAData->stMCIMixSetup.ulMixHandle,
&pAData->aMixBuffers, &pAData->aMixBuffers,
1 /*stMCIBuffer.ulNumBuffers*/); 1 /*stMCIBuffer.ulNumBuffers*/);

View File

@ -227,9 +227,9 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
/* Size of template (cbTemplate). */ /* Size of template (cbTemplate). */
cbTemplate = sizeof(DLGTEMPLATE) + ((2 + cSDLBtnData) * sizeof(DLGTITEM)) + cbTemplate = sizeof(DLGTEMPLATE) + ((2 + cSDLBtnData) * sizeof(DLGTITEM)) +
sizeof(ULONG) + // First item data - frame control data. */ sizeof(ULONG) + /* First item data - frame control data. */
cbTitle + 1 + // First item data - frame title + ZERO. */ cbTitle + 1 + /* First item data - frame title + ZERO. */
cbText + 1 + // Second item data - ststic text + ZERO.*/ cbText + 1 + /* Second item data - ststic text + ZERO.*/
3; /* Third item data - system icon Id. */ 3; /* Third item data - system icon Id. */
/* Button items datas - text for buttons. */ /* Button items datas - text for buttons. */
for (ulIdx = 0; ulIdx < cSDLBtnData; ulIdx++) { for (ulIdx = 0; ulIdx < cSDLBtnData; ulIdx++) {
@ -263,7 +263,7 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
pDlgItem = pTemplate->adlgti; pDlgItem = pTemplate->adlgti;
pDlgItem->fsItemStatus = 0; /* Reserved? */ pDlgItem->fsItemStatus = 0; /* Reserved? */
/* Number of dialog item child windows owned by this item. */ /* Number of dialog item child windows owned by this item. */
pDlgItem->cChildren = 2 + cSDLBtnData; // Ststic text + buttons. pDlgItem->cChildren = 2 + cSDLBtnData; /* Ststic text + buttons. */
/* Length of class name, if 0 then offClassname contains a WC_ value. */ /* Length of class name, if 0 then offClassname contains a WC_ value. */
pDlgItem->cchClassName = 0; pDlgItem->cchClassName = 0;
pDlgItem->offClassName = (USHORT)WC_FRAME; pDlgItem->offClassName = (USHORT)WC_FRAME;
@ -284,7 +284,7 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
pDlgItem->y = 100; pDlgItem->y = 100;
pDlgItem->cx = 175; pDlgItem->cx = 175;
pDlgItem->cy = 65; pDlgItem->cy = 65;
pDlgItem->id = DID_OK; /* An ID value? */ pDlgItem->id = DID_OK; /* An ID value? */
if (pSDLColors == NULL) if (pSDLColors == NULL)
pDlgItem->offPresParams = 0; pDlgItem->offPresParams = 0;
else { else {
@ -428,7 +428,7 @@ static HWND _makeDlg(const SDL_MessageBoxData *messageboxdata)
pDlgItem->cx = 70; pDlgItem->cx = 70;
pDlgItem->cy = 15; pDlgItem->cy = 15;
pDlgItem->id = IDD_PB_FIRST + ulIdx; /* an ID value */ pDlgItem->id = IDD_PB_FIRST + ulIdx; /* an ID value */
if (pSDLColors == NULL) if (pSDLColors == NULL)
pDlgItem->offPresParams = 0; pDlgItem->offPresParams = 0;
else { else {