Lines 1219-1234
Link Here
|
1219 |
} |
1219 |
} |
1220 |
|
1220 |
|
1221 |
void Render::text_part(const string& message, const string& font_name, int r, int g, int b, |
1221 |
void Render::text_part(const string& message, const string& font_name, int r, int g, int b, |
1222 |
int x, int y, int total_w, int total_h, const rect& rect) |
1222 |
int x, int y, int total_w, int total_h, const rect& rct) |
1223 |
{ |
1223 |
{ |
1224 |
if (set_font(font_name)) { |
1224 |
if (set_font(font_name)) { |
1225 |
Imlib_Image temp2= imlib_create_cropped_image(rect.x, rect.y, rect.w, rect.h); |
1225 |
Imlib_Image temp2= imlib_create_cropped_image(rct.x, rct.y, rct.w, rct.h); |
1226 |
|
1226 |
|
1227 |
Imlib_Image temp = imlib_create_image(total_w, total_h); |
1227 |
Imlib_Image temp = imlib_create_image(total_w, total_h); |
1228 |
|
1228 |
|
1229 |
imlib_context_set_image(temp); |
1229 |
imlib_context_set_image(temp); |
1230 |
|
1230 |
|
1231 |
imlib_blend_image_onto_image(temp2, 0, 0, 0, rect.w, rect.h, rect.x-x, rect.y-y, rect.w, rect.h); |
1231 |
imlib_blend_image_onto_image(temp2, 0, 0, 0, rct.w, rct.h, rct.x-x, rct.y-y, rct.w, rct.h); |
1232 |
|
1232 |
|
1233 |
imlib_context_set_image(temp2); |
1233 |
imlib_context_set_image(temp2); |
1234 |
imlib_free_image(); |
1234 |
imlib_free_image(); |
Lines 1251-1257
Link Here
|
1251 |
|
1251 |
|
1252 |
imlib_context_set_image(current.image_data); |
1252 |
imlib_context_set_image(current.image_data); |
1253 |
|
1253 |
|
1254 |
imlib_blend_image_onto_image(temp, 0, rect.x-x, rect.y-y, rect.w, rect.h, rect.x, rect.y, rect.w, rect.h); |
1254 |
imlib_blend_image_onto_image(temp, 0, rct.x-x, rct.y-y, rct.w, rct.h, rct.x, rct.y, rct.w, rct.h); |
1255 |
|
1255 |
|
1256 |
imlib_context_set_image(temp); |
1256 |
imlib_context_set_image(temp); |
1257 |
imlib_free_image(); |
1257 |
imlib_free_image(); |