View Single Post
Posts: 490 | Thanked: 191 times | Joined on May 2010
#69
Originally Posted by MohammadAG View Post
Yes I know that, but he released a binary, I need a patch for the source code.
aligatro, you're violating the GPL, post the source or patch file that you used.
Weird... I thought I did. http://talk.maemo.org/showpost.php?p...2&postcount=48

But it's not a patch, it's a whole c file with modifications.

Also, can you take a look at

Code:
#define DOUBLE_COLUMN 0
// tried both: with 0 and without

Code:
#if defined(SINGLE_COLUMN)
# define THUMB_LARGE_WIDTH         600
# define THUMB_LARGE_HEIGHT        373
#elseif defined(DOUBLE_COLUMN)
# define THUMB_LARGE_WIDTH       600
# define THUMB_LARGE_HEIGHT        373
#else
# define THUMB_LARGE_WIDTH         344
# define THUMB_LARGE_HEIGHT        214
#endif
Code:
#if defined(DOUBLE_COLUMN)
#define THUMB_MEDIUM_WIDTH        314
#define THUMB_MEDIUM_HEIGHT       214
#else
#define THUMB_MEDIUM_WIDTH        224
#define THUMB_MEDIUM_HEIGHT       150
#endif
Code:
  if (NThumbnails == 1)
  {
      lout->thumbsize = &Thumbsizes.large;
    lout->cells_per_row = 1;
    nrows_per_page = 1;
  }
  else
  {    
    #if defined(DOUBLE_COLUMN)
      lout->thumbsize = &Thumbsizes.medium;
    #else
    lout->thumbsize = &Thumbsizes.large;
    #endif

      lout->cells_per_row = 2;
      nrows_per_page = NThumbnails <= 2 ? 1 : 2;
  }
Seems to always execute whatever is inside "else"

Last edited by aligatro; 2010-10-17 at 15:20.