diff options
author | Max Horn | 2011-02-07 23:01:06 +0000 |
---|---|---|
committer | Max Horn | 2011-02-07 23:01:06 +0000 |
commit | 2d1c8a35331d4c73032a6fcd50ab3f7a27513dbb (patch) | |
tree | a538852678f172dec297b83d115a7d76f2638969 /engines/scumm/he | |
parent | 377b4c67d99503b19e866ff47c685c57dd2a56e0 (diff) | |
download | scummvm-rg350-2d1c8a35331d4c73032a6fcd50ab3f7a27513dbb.tar.gz scummvm-rg350-2d1c8a35331d4c73032a6fcd50ab3f7a27513dbb.tar.bz2 scummvm-rg350-2d1c8a35331d4c73032a6fcd50ab3f7a27513dbb.zip |
ALL: Fix whitespaces / indention
svn-id: r55818
Diffstat (limited to 'engines/scumm/he')
-rw-r--r-- | engines/scumm/he/resource_he.cpp | 16 | ||||
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/engines/scumm/he/resource_he.cpp b/engines/scumm/he/resource_he.cpp index 0f7fe93e6d..135af1bb38 100644 --- a/engines/scumm/he/resource_he.cpp +++ b/engines/scumm/he/resource_he.cpp @@ -241,7 +241,7 @@ const char *Win32ResExtractor::res_type_string_to_id(const char *type) { if (type == NULL) return NULL; - for (c = 0 ; c < (int)RES_TYPE_COUNT ; c++) { + for (c = 0; c < (int)RES_TYPE_COUNT; c++) { if (res_types[c] != NULL && !scumm_stricmp(type, res_types[c])) return res_type_ids[c]; } @@ -355,7 +355,7 @@ byte *Win32ResExtractor::extract_group_icon_cursor_resource(WinLibrary *fi, WinR /* calculate total size of output file */ RETURN_IF_BAD_POINTER(NULL, icondir->count); skipped = 0; - for (c = 0 ; c < FROM_LE_16(icondir->count) ; c++) { + for (c = 0; c < FROM_LE_16(icondir->count); c++) { int level; int iconsize; char name[14]; @@ -411,7 +411,7 @@ byte *Win32ResExtractor::extract_group_icon_cursor_resource(WinLibrary *fi, WinR /* transfer each cursor/icon: Win32CursorIconDirEntry and data */ skipped = 0; - for (c = 0 ; c < FROM_LE_16(icondir->count) ; c++) { + for (c = 0; c < FROM_LE_16(icondir->count); c++) { int level; char name[14]; WinResource *fwr; @@ -585,7 +585,7 @@ bool Win32ResExtractor::decode_pe_resource_id(WinLibrary *fi, WinResource *wr, u RETURN_IF_BAD_OFFSET(false, &mem[1], sizeof(uint16) * len); len = MIN(FROM_LE_16(mem[0]), (uint16)WINRES_ID_MAXLEN); - for (c = 0 ; c < len ; c++) + for (c = 0; c < len; c++) wr->id[c] = FROM_LE_16(mem[c+1]) & 0x00FF; wr->id[len] = '\0'; wr->numeric_id = false; @@ -629,7 +629,7 @@ Win32ResExtractor::WinResource *Win32ResExtractor::list_pe_resources(WinLibrary wr = (WinResource *)malloc(sizeof(WinResource) * rescnt); /* fill in the WinResource's */ - for (c = 0 ; c < rescnt ; c++) { + for (c = 0; c < rescnt; c++) { RETURN_IF_BAD_POINTER(NULL, dirent[c]); wr[c].this_ = pe_res; wr[c].level = level; @@ -708,7 +708,7 @@ bool Win32ResExtractor::read_library(WinLibrary *fi) { /* we don't need to do OFFSET checking for the sections. * calc_vma_size has already done that */ - for (d = pe_header->file_header.number_of_sections - 1; d >= 0 ; d--) { + for (d = pe_header->file_header.number_of_sections - 1; d >= 0; d--) { Win32ImageSectionHeader *pe_sec = PE_SECTIONS(fi->memory) + d; if (pe_sec->characteristics & IMAGE_SCN_CNT_UNINITIALIZED_DATA) @@ -765,7 +765,7 @@ int Win32ResExtractor::calc_vma_size(WinLibrary *fi) { seg = PE_SECTIONS(fi->memory); RETURN_IF_BAD_POINTER(-1, *seg); - for (c = 0 ; c < segcount ; c++) { + for (c = 0; c < segcount; c++) { RETURN_IF_BAD_POINTER(0, *seg); fix_win32_image_section_header(seg); @@ -786,7 +786,7 @@ Win32ResExtractor::WinResource *Win32ResExtractor::find_with_resource_array(WinL if (wr == NULL) return NULL; - for (c = 0 ; c < rescnt ; c++) { + for (c = 0; c < rescnt; c++) { if (compare_resource_id(&wr[c], id)) { /* duplicate WinResource and return it */ return_wr = (WinResource *)malloc(sizeof(WinResource)); diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index 807380272d..c7e6a56083 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -2342,7 +2342,7 @@ void Wiz::remapWizImagePal(const WizParameters *params) { const uint8 *index = params->remapIndex; uint8 *iwiz = _vm->getResourceAddress(rtImage, params->img.resNum); assert(iwiz); - uint8 *rmap = _vm->findWrappedBlock(MKID_BE('RMAP'), iwiz, st, 0) ; + uint8 *rmap = _vm->findWrappedBlock(MKID_BE('RMAP'), iwiz, st, 0); assert(rmap); WRITE_BE_UINT32(rmap, 0x01234567); while (num--) { |