summaryrefslogtreecommitdiffstats
path: root/kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:56:05 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-19 11:56:05 -0600
commit74c05bbf9d92e43a6cf3799355b5f3598884409e (patch)
tree9371e52e1564e08fd280f28e49981ffeb881b9d2 /kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp
parent45f529de247fc4b3662f6b474abe03fe904306ec (diff)
downloadtdegraphics-74c05bbf9d92e43a6cf3799355b5f3598884409e.tar.gz
tdegraphics-74c05bbf9d92e43a6cf3799355b5f3598884409e.zip
Remove additional unneeded tq method conversions
Diffstat (limited to 'kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp')
-rw-r--r--kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp b/kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp
index 54f24f1e..802f0edf 100644
--- a/kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp
+++ b/kviewshell/plugins/djvu/libdjvu/DjVuImage.cpp
@@ -848,17 +848,17 @@ DjVuImage::stencil(GPixmap *pm, const GRect &rect,
for (int blitno = 0; blitno < jimg->get_blit_count(); blitno++)
{
const JB2Blit *pblit = jimg->get_blit(blitno);
- const JB2Shape &ptqshape = jimg->get_tqshape(pblit->tqshapeno);
- if (ptqshape.bits &&
+ const JB2Shape &pshape = jimg->get_shape(pblit->shapeno);
+ if (pshape.bits &&
pblit->left <= rect.xmax * subsample &&
pblit->bottom <= rect.ymax * subsample &&
- pblit->left + (int)ptqshape.bits->columns() >= rect.xmin * subsample &&
- pblit->bottom + (int)ptqshape.bits->rows() >= rect.ymin * subsample )
+ pblit->left + (int)pshape.bits->columns() >= rect.xmin * subsample &&
+ pblit->bottom + (int)pshape.bits->rows() >= rect.ymin * subsample )
{
// Record component list
if (fgbc) components.append(blitno);
// Blit
- bm->blit(ptqshape.bits,
+ bm->blit(pshape.bits,
pblit->left - rxmin, pblit->bottom - rymin,
subsample);
}
@@ -902,9 +902,9 @@ DjVuImage::stencil(GPixmap *pm, const GRect &rect,
lastx = pblit->left;
if (fg->colordata[blitno] == colorindex)
{
- const JB2Shape &ptqshape = jimg->get_tqshape(pblit->tqshapeno);
+ const JB2Shape &pshape = jimg->get_shape(pblit->shapeno);
GRect rect(pblit->left, pblit->bottom,
- ptqshape.bits->columns(), ptqshape.bits->rows());
+ pshape.bits->columns(), pshape.bits->rows());
comprect.recthull(comprect, rect);
compset.insert_before(nullpos, components, pos);
continue;
@@ -927,8 +927,8 @@ DjVuImage::stencil(GPixmap *pm, const GRect &rect,
{
int blitno = compset[pos];
const JB2Blit *pblit = jimg->get_blit(blitno);
- const JB2Shape &ptqshape = jimg->get_tqshape(pblit->tqshapeno);
- bm->blit(ptqshape.bits,
+ const JB2Shape &pshape = jimg->get_shape(pblit->shapeno);
+ bm->blit(pshape.bits,
pblit->left - rxmin, pblit->bottom - rymin,
subsample);
}