Reactos

[DXHALTEST] Correct some typos (#5737)

I.e. translate GreatLordish into proper English :)

Reviewed-by: Robert Naumann <gonzomdx@gmail.com>
Reviewed-by: Joachim Henze <joachim.henze@reactos.org>
Reviewed-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Reviewed-by: Carl J. Bialorucki <cbialo2@outlook.com>

authored by

Andrew Shelkovenko and committed by
GitHub
44c7d9ad 19a0f14b

+21 -21
+21 -21
modules/rostests/tests/DxHalTest/main.c
··· 98 98 DdAttachSurface = (BOOL (APIENTRY*)(LPDDRAWI_DDRAWSURFACE_LCL, LPDDRAWI_DDRAWSURFACE_LCL))GetProcAddress(lib, "GdiEntry11"); 99 99 DdResetVisrgn = (BOOL (APIENTRY*)(LPDDRAWI_DDRAWSURFACE_LCL, HWND))GetProcAddress(lib, "GdiEntry6"); 100 100 101 - printf("This apps showing how to start up directx draw/d3d interface and some other as well\n"); 102 - printf("This code have been releae to some close applactons with my premtions, if any company\n"); 103 - printf("want use part or whole code, you need contact the orginal author to ask for premtions\n"); 104 - printf("This code are release under alot of diffent licen\n"); 105 - printf("All GPL and LGPL project have right use and studing this code.\n"); 106 - printf("This code maybe need more comment to known how stuff working and maybe looking bit mesy\n"); 107 - printf("Bestreagds Magnus Olsen magnus@greatlord.com or greatlord@reactos.org\n"); 101 + printf("This app shows how to start up a DirectDraw/Direct3D interface and some others.\n"); 102 + printf("This code has been released to some closed applications with my permission. If any company\n"); 103 + printf("wants to use this code, you must contact the original author to ask for permission.\n"); 104 + printf("This code is released under many different licenses.\n"); 105 + printf("All GPL and LGPL projects have the right to use and study this code.\n"); 106 + printf("This code may require more comments to know how stuff works.\n"); 107 + printf("Best regards, Magnus Olsen magnus@greatlord.com or greatlord@reactos.org\n"); 108 108 printf("Copyright 2006 by Magnus Olsen\n\n"); 109 - printf("This demo showing how to start dx draw hal and create a primary surface,\n"); 110 - printf("and a overlay sufrace and blt to the primary surface\n"); 109 + printf("This demo shows how to start DirectDraw, creating a primary surface\n"); 110 + printf("and an overlay surface, and a blt to the primary surface.\n"); 111 111 112 112 113 113 /* ··· 208 208 209 209 mDDrawGlobal.dwRefCnt = 1; //addref / remove ref 210 210 211 - // Do not relase HDC it have been map in kernel mode 211 + // Do not release HDC, it has been mapped in kernel mode 212 212 // DeleteDC(hdc); 213 213 214 - /* we need reanable it if screen res have changes, and some bad drv need be reanble very few 215 - to contiune */ 214 + /* we need to reenable it if the screen resolution has changed, and some 215 + bad driver needs to be reenabled infrequently to continue */ 216 216 /* 217 217 if (!DdReenableDirectDrawObject(&mDDrawGlobal, &newmode)) 218 218 { ··· 254 254 HeapFree(GetProcessHeap(), 0, mpModeInfos); 255 255 DeleteDC(hdc); 256 256 DeleteObject(hbmp); 257 - // FIXME Close DX fristcall and second call 257 + // FIXME Close DX first call and second call 258 258 return DD_FALSE; 259 259 } 260 260 ··· 265 265 HeapFree(GetProcessHeap(), 0, mpModeInfos); 266 266 DeleteDC(hdc); 267 267 DeleteObject(hbmp); 268 - // FIXME Close DX fristcall and second call 269 - printf("Fail to QueryDirect Draw Object frist pass\n"); 268 + // FIXME Close DX first call and second call 269 + printf("Fail to QueryDirect Draw Object first pass\n"); 270 270 return DD_FALSE; 271 271 } 272 272 ··· 291 291 HeapFree(GetProcessHeap(), 0, mpModeInfos); 292 292 DeleteDC(hdc); 293 293 DeleteObject(hbmp); 294 - // FIXME Close DX fristcall and second call 294 + // FIXME Close DX first call and second call 295 295 printf("Fail QueryDirect Draw Object to Alloc mpTextures \n"); 296 296 return DD_FALSE; 297 297 } ··· 328 328 Copy over from HalInfo to DirectDrawGlobal 329 329 */ 330 330 331 - // this is wrong, cDriverName need be in ASC code not UNICODE 331 + // this is wrong, cDriverName needs to be in ASCII not UNICODE 332 332 //memcpy(mDDrawGlobal.cDriverName, mDisplayAdapter, sizeof(wchar)*MAX_DRIVER_NAME); 333 333 334 334 memcpy(&mDDrawGlobal.vmiData, &mHALInfo.vmiData,sizeof(VIDMEMINFO)); ··· 350 350 351 351 /* Hal insate is down now */ 352 352 353 - /* cleare surface code now*/ 353 + /* clear surface code now */ 354 354 355 355 // memset(&mGlobal, 0, sizeof(DDRAWI_DDRAWSURFACE_GBL)); 356 356 // memset(&mMore, 0, sizeof(DDRAWI_DDRAWSURFACE_MORE)); ··· 361 361 362 362 mPrimaryLocal.lpSurfMore = &mPrimaryMore; 363 363 364 - /* cleare surface ends now */ 364 + /* clear surface ends now */ 365 365 366 - /* create primare surface now */ 366 + /* create primary surface now */ 367 367 368 368 memset(&mddsdPrimary, 0, sizeof(DDSURFACEDESC)); 369 369 mddsdPrimary.dwSize = sizeof(DDSURFACEDESC); ··· 453 453 mDdBlt.lpDDDestSurface = mpPrimaryLocals[0]; 454 454 455 455 456 - /* create primare surface is down now */ 456 + /* create primary surface is down now */ 457 457 458 458 /* create overlay surface now */ 459 459