Various compilation scripts & patches for Linux programs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.7 KiB

7 years ago
  1. --- a/src/gifcreator.cpp
  2. +++ b/src/gifcreator.cpp
  3. @@ -55,7 +55,7 @@
  4. GifFileType *GifFile = EGifOpenFileName(filename, FALSE);
  5. if (!GifFile){
  6. - PrintGifError();
  7. + GifError();
  8. return false;
  9. }
  10. @@ -63,7 +63,7 @@
  11. GifFile,
  12. w, h, colorRes, 0, cmaps.size() > 1 ? NULL : cmaps.at(0)
  13. ) == GIF_ERROR){
  14. - PrintGifError();
  15. + GifError();
  16. return false;
  17. }
  18. @@ -75,7 +75,7 @@
  19. char nsle[12] = "NETSCAPE2.0";
  20. char subblock[3];
  21. if (EGifPutExtensionFirst(GifFile, APPLICATION_EXT_FUNC_CODE, 11, nsle) == GIF_ERROR) {
  22. - PrintGifError();
  23. + GifError();
  24. return false;
  25. }
  26. subblock[0] = 1;
  27. @@ -83,7 +83,7 @@
  28. subblock[1] = loop_count / 256;
  29. if (EGifPutExtensionLast(GifFile, APPLICATION_EXT_FUNC_CODE, 3, subblock) == GIF_ERROR) {
  30. - PrintGifError();
  31. + GifError();
  32. return false;
  33. }
  34. @@ -113,7 +113,7 @@
  35. GifFile,
  36. 0, 0, w, h, FALSE, cmaps.size() > ni ? cmaps.at(ni) : cmaps.at(cmaps.size()-1)
  37. ) == GIF_ERROR) {
  38. - PrintGifError();
  39. + GifError();
  40. endProgress();
  41. return false;
  42. }
  43. @@ -121,7 +121,7 @@
  44. for (int y = 0, j=(h-1)*w; y < h; y++, j-=w) {
  45. if (EGifPutLine(GifFile, &(frames[ni][j]), w) == GIF_ERROR){
  46. - PrintGifError();
  47. + GifError();
  48. endProgress();
  49. return false;
  50. }
  51. @@ -130,13 +130,13 @@
  52. //comment
  53. if(EGifPutComment(GifFile,"This GIF file was created using QGifer") == GIF_ERROR){
  54. - PrintGifError();
  55. + GifError();
  56. endProgress();
  57. return false;
  58. }
  59. if (EGifCloseFile(GifFile) == GIF_ERROR) {
  60. - PrintGifError();
  61. + GifError();
  62. endProgress();
  63. return false;
  64. }