Lines 120-127
Link Here
|
120 |
posx += width * offset / 2; |
120 |
posx += width * offset / 2; |
121 |
posy += height * offset / 2; |
121 |
posy += height * offset / 2; |
122 |
|
122 |
|
123 |
int x = (int) round(posx) + xoff; |
123 |
int displayx = (int) round(posx) + xoff; |
124 |
int y = (int) round(posy) + yoff; |
124 |
int displayy = (int) round(posy) + yoff; |
125 |
|
125 |
|
126 |
int type; |
126 |
int type; |
127 |
LookUp lookup(bbMask); |
127 |
LookUp lookup(bbMask); |
Lines 155-164
Link Here
|
155 |
|
155 |
|
156 |
Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(back); |
156 |
Glib::RefPtr<Gdk::GC> gc = Gdk::GC::create(back); |
157 |
gc->set_clip_mask(mask[type]); |
157 |
gc->set_clip_mask(mask[type]); |
158 |
gc->set_clip_origin(x, y); |
158 |
gc->set_clip_origin(displayx, displayy); |
159 |
|
159 |
|
160 |
if(back && map_board[type]) |
160 |
if(back && map_board[type]) |
161 |
back->draw_drawable(gc, map_board[type], 0, 0, x, y, -1, -1); |
161 |
back->draw_drawable(gc, map_board[type], 0, 0, displayx, displayy, -1, -1); |
162 |
|
162 |
|
163 |
cellNo++; |
163 |
cellNo++; |
164 |
} |
164 |
} |
Lines 205-216
Link Here
|
205 |
posx += width * offset / 2; |
205 |
posx += width * offset / 2; |
206 |
posy += height * offset / 2; |
206 |
posy += height * offset / 2; |
207 |
|
207 |
|
208 |
int x = (int) round(posx + w / 2) + xoff; |
208 |
int displayx = (int) round(posx + w / 2) + xoff; |
209 |
int y = (int) round(posy + h / 2) + yoff; |
209 |
int displayy = (int) round(posy + h / 2) + yoff; |
210 |
|
210 |
|
211 |
// Now we got the place for cell cellNo |
211 |
// Now we got the place for cell cellNo |
212 |
double dx = inx - x; |
212 |
double dx = inx - displayx; |
213 |
double dy = iny - y; |
213 |
double dy = iny - displayy; |
214 |
double a = (w/2)*(w/2); |
214 |
double a = (w/2)*(w/2); |
215 |
double b = (h/2)*(h/2); |
215 |
double b = (h/2)*(h/2); |
216 |
|
216 |
|