Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 290294 | Differences between
and this patch

Collapse All | Expand All

(-)a/g_src/ttf_manager.cpp (-1 / +2 lines)
Lines 136-142 Link Here
136
  // const int full_grid_width = int(ceil(double(ttf_width) / double(tile_width) + fraction) + 0.1); // Total width of the image in grid units
136
  // const int full_grid_width = int(ceil(double(ttf_width) / double(tile_width) + fraction) + 0.1); // Total width of the image in grid units
137
  const int full_grid_width = text_width;
137
  const int full_grid_width = text_width;
138
  const int pixel_width = full_grid_width * tile_width; // And pixels
138
  const int pixel_width = full_grid_width * tile_width; // And pixels
139
  assert(pixel_width >= ttf_width);
139
  if (pixel_width < ttf_width)
140
    printf("!!! pixel_width (%d) < ttf_width (%d) !!!", pixel_width, ttf_width);
140
  // Store for later
141
  // Store for later
141
  ttf_details ret; ret.handle = handle; ret.offset = grid_offset; ret.width = full_grid_width;
142
  ttf_details ret; ret.handle = handle; ret.offset = grid_offset; ret.width = full_grid_width;
142
  handles[id] = ret;
143
  handles[id] = ret;

Return to bug 290294