Rev 18 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 18 | Rev 20 | ||
---|---|---|---|
Line 571... | Line 571... | ||
571 | 571 | ||
572 | // IDA: void __cdecl CalcGrafDataIndex() |
572 | // IDA: void __cdecl CalcGrafDataIndex() |
573 | void CalcGrafDataIndex(void) { |
573 | void CalcGrafDataIndex(void) { |
574 | int i; |
574 | int i; |
575 | 575 | ||
576 | for (i = 0; i < |
576 | for (i = 0; i < sizeof (gGraf_specs) / sizeof (gGraf_specs[0]); i++) { // Pierre-Marie Baty -- parse the whole array |
577 | if (gGraf_specs[gGraf_spec_index].total_width == gGraf_data[i].width && gGraf_specs[gGraf_spec_index].total_height == gGraf_data[i].height) { |
577 | if (gGraf_specs[gGraf_spec_index].total_width == gGraf_data[i].width && gGraf_specs[gGraf_spec_index].total_height == gGraf_data[i].height) { |
578 | gReal_graf_data_index = i; |
578 | gReal_graf_data_index = i; |
579 | gGraf_data_index = i; |
579 | gGraf_data_index = i; |
580 | gCurrent_graf_data = &gGraf_data[i]; |
580 | gCurrent_graf_data = &gGraf_data[i]; |
581 | return; |
581 | return; |