Front ends don't need to call thumbnail_get_redraw_scale() now.
svn path=/trunk/netsurf/; revision=11946
This commit is contained in:
parent
a0e0d23c2d
commit
55fd1d0133
|
@ -57,8 +57,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
current_redraw_browser = curbw;
|
||||
plot = amiplot;
|
||||
|
||||
glob->scale = thumbnail_get_redraw_scale(content, plot_width);
|
||||
|
||||
thumbnail_redraw(content, plot_width, plot_height);
|
||||
|
||||
current_redraw_browser = NULL;
|
||||
|
|
|
@ -67,7 +67,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
BView *thumbView;
|
||||
float width;
|
||||
float height;
|
||||
float plot_scale;
|
||||
int big_width;
|
||||
int big_height;
|
||||
int depth;
|
||||
|
@ -118,7 +117,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
nsbeos_current_gc_set(view);
|
||||
|
||||
plot = nsbeos_plotters;
|
||||
plot_scale = thumbnail_get_redraw_scale(content, big_width);
|
||||
|
||||
/* render the content */
|
||||
thumbnail_redraw(content, big_width, big_height);
|
||||
|
|
|
@ -46,9 +46,6 @@ bool thumbnail_create(struct hlcache_handle *content, struct bitmap *bitmap,
|
|||
|
||||
[NSGraphicsContext setCurrentContext: [NSGraphicsContext graphicsContextWithGraphicsPort: bitmapContext flipped: YES]];
|
||||
|
||||
/* todo: ??? set plot scale according to the scale the thumbnail will be
|
||||
* rendered at, by calling thumbnail_get_redraw_scale(). ??? */
|
||||
|
||||
thumbnail_redraw( content, width, height );
|
||||
|
||||
[NSGraphicsContext setCurrentContext: nil];
|
||||
|
|
|
@ -57,7 +57,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
gint depth;
|
||||
GdkPixmap *pixmap;
|
||||
GdkPixbuf *big;
|
||||
float plot_scale;
|
||||
double scale;
|
||||
|
||||
assert(content);
|
||||
|
@ -97,9 +96,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
/* set the plotting functions up */
|
||||
plot = nsgtk_plotters;
|
||||
|
||||
/* Plotters need to know thumbnail scale */
|
||||
plot_scale = thumbnail_get_redraw_scale(content, cwidth);
|
||||
|
||||
/* set to plot to pixmap */
|
||||
current_drawable = pixmap;
|
||||
current_gc = gdk_gc_new(current_drawable);
|
||||
|
|
|
@ -82,7 +82,6 @@ static void thumbnail_restore_output(struct thumbnail_save_area *save_area);
|
|||
bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
||||
const char *url)
|
||||
{
|
||||
float scale = 1.0;
|
||||
struct thumbnail_save_area *save_area;
|
||||
osspriteop_area *sprite_area = NULL;
|
||||
osspriteop_header *sprite_header = NULL;
|
||||
|
@ -114,8 +113,6 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
|||
plot = ro_plotters;
|
||||
ro_plot_origin_x = 0;
|
||||
ro_plot_origin_y = bitmap->height * 2;
|
||||
if (content_get_width(content))
|
||||
scale = thumbnail_get_redraw_scale(content, bitmap->width);
|
||||
|
||||
/* switch output and redraw */
|
||||
save_area = thumbnail_switch_output(sprite_area, sprite_header);
|
||||
|
|
Loading…
Reference in New Issue