"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Graphics/Pictures/scalable.cpp" between
TeXmacs-1.99.4-src.tar.gz and TeXmacs-1.99.5-src.tar.gz

About: GNU TeXmacs is a what-you-see-is-what-you-get scientific text editor, which was both inspired by TeX and GNU Emacs.

scalable.cpp  (TeXmacs-1.99.4-src):scalable.cpp  (TeXmacs-1.99.5-src)
skipping to change at line 46 skipping to change at line 46
scalable_kind get_type () { return scalable_image; } scalable_kind get_type () { return scalable_image; }
void* get_handle () { return (void*) this; } void* get_handle () { return (void*) this; }
url get_name () { return u; } url get_name () { return u; }
rectangle get_logical_extents () { rectangle get_logical_extents () {
return rectangle (0, 0, w, h); } return rectangle (0, 0, w, h); }
rectangle get_physical_extents () { rectangle get_physical_extents () {
return rectangle (0, 0, w, h); } return rectangle (0, 0, w, h); }
void draw (renderer ren, SI x, SI y, int alpha) { void draw (renderer ren, SI x, SI y, int alpha) {
if (px != ren->pixel) {
picture_cache_release (u, w/px, h/px);
px= ren->pixel;
picture_cache_reserve (u, w/px, h/px);
}
picture pict= cached_load_picture (u, w/ren->pixel, h/ren->pixel, false); picture pict= cached_load_picture (u, w/ren->pixel, h/ren->pixel, false);
ren->draw_picture (pict, x, y, alpha); } ren->draw_picture (pict, x, y, alpha); }
}; };
scalable scalable
load_scalable_image (url file_name, SI w, SI h, SI pixel) { load_scalable_image (url file_name, SI w, SI h, SI pixel) {
return tm_new<scalable_image_rep> (file_name, w, h, pixel); return tm_new<scalable_image_rep> (file_name, w, h, pixel);
} }
 End of changes. 1 change blocks. 
0 lines changed or deleted 5 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS