0002-rename-blits-to-tmblits.patch 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. Bug-Debian: https://bugs.debian.org/986623
  2. Forwarded: no
  3. Last-Update: 2021-04-20
  4. --- tuxmath-2.0.3.orig/src/titlescreen.c
  5. +++ tuxmath-2.0.3/src/titlescreen.c
  6. @@ -55,7 +55,7 @@ struct blit {
  7. SDL_Rect *srcrect;
  8. SDL_Rect *dstrect;
  9. unsigned char type;
  10. -} blits[MAX_UPDATES];
  11. +} tmblits[MAX_UPDATES];
  12. // Lessons available for play
  13. char **lesson_list_titles = NULL;
  14. @@ -1019,8 +1019,8 @@ void init_blits(void) {
  15. int i;
  16. for (i = 0; i < MAX_UPDATES; ++i) {
  17. - blits[i].srcrect = &srcupdate[i];
  18. - blits[i].dstrect = &dstupdate[i];
  19. + tmblits[i].srcrect = &srcupdate[i];
  20. + tmblits[i].dstrect = &dstupdate[i];
  21. }
  22. }
  23. @@ -1032,14 +1032,14 @@ void update_screen(int *frame) {
  24. /* -- First erase everything we need to -- */
  25. for (i = 0; i < numupdates; i++)
  26. - if (blits[i].type == 'E')
  27. - SDL_LowerBlit(blits[i].src, blits[i].srcrect, screen, blits[i].dstrect);
  28. + if (tmblits[i].type == 'E')
  29. + SDL_LowerBlit(tmblits[i].src, tmblits[i].srcrect, screen, tmblits[i].dstrect);
  30. // SNOW_erase();
  31. /* -- then draw -- */
  32. for (i = 0; i < numupdates; i++)
  33. - if (blits[i].type == 'D')
  34. - SDL_BlitSurface(blits[i].src, blits[i].srcrect, screen, blits[i].dstrect);
  35. + if (tmblits[i].type == 'D')
  36. + SDL_BlitSurface(tmblits[i].src, tmblits[i].srcrect, screen, tmblits[i].dstrect);
  37. // SNOW_draw();
  38. /* -- update the screen only where we need to! -- */
  39. @@ -1067,7 +1067,7 @@ void add_rect(SDL_Rect* src, SDL_Rect* d
  40. return;
  41. }
  42. - update = &blits[numupdates++];
  43. + update = &tmblits[numupdates++];
  44. update->srcrect->x = src->x;
  45. update->srcrect->y = src->y;