mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-05 00:54:06 +03:00
Fix the build.
svn path=/trunk/netsurf/; revision=11766
This commit is contained in:
parent
c550ae0e69
commit
e8ce7bd953
@ -45,7 +45,7 @@ extern "C" {
|
||||
#include "content/content.h"
|
||||
#include "content/content_protected.h"
|
||||
#include "content/fetch.h"
|
||||
#include "content/fetchers/fetch_curl.h"
|
||||
#include "content/fetchers/curl.h"
|
||||
#include "content/urldb.h"
|
||||
#include "desktop/401login.h"
|
||||
#include "desktop/browser.h"
|
||||
|
@ -66,7 +66,7 @@ static bool nsbeos_plot_line(int x0, int y0, int x1, int y1, const plot_style_t
|
||||
static bool nsbeos_plot_polygon(const int *p, unsigned int n, const plot_style_t *style);
|
||||
static bool nsbeos_plot_path(const float *p, unsigned int n, colour fill, float width,
|
||||
colour c, const float transform[6]);
|
||||
static bool nsbeos_plot_clip(const struct clip *rect);
|
||||
static bool nsbeos_plot_clip(const struct rect *ns_clip);
|
||||
static bool nsbeos_plot_text(int x, int y, const char *text, size_t length,
|
||||
const plot_font_style_t *fstyle);
|
||||
static bool nsbeos_plot_disc(int x, int y, int radius, const plot_style_t *style);
|
||||
|
@ -26,6 +26,7 @@
|
||||
|
||||
#define __STDBOOL_H__ 1
|
||||
#include <assert.h>
|
||||
#include <sys/param.h>
|
||||
#include <Bitmap.h>
|
||||
#include <View.h>
|
||||
extern "C" {
|
||||
@ -79,8 +80,8 @@ bool thumbnail_create(hlcache_handle *content, struct bitmap *bitmap,
|
||||
height = thumbnail->Bounds().Height();
|
||||
depth = 32;
|
||||
|
||||
big_width = min(content_get_width(content), 1024);
|
||||
big_height = ((big_width * height) + (width / 2)) / width;
|
||||
big_width = MIN(content_get_width(content), 1024);
|
||||
big_height = (int)(((big_width * height) + (width / 2)) / width);
|
||||
|
||||
BRect contentRect(0, 0, big_width - 1, big_height - 1);
|
||||
big = new BBitmap(contentRect, B_BITMAP_ACCEPTS_VIEWS, B_RGB32);
|
||||
@ -117,7 +118,7 @@ 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)
|
||||
plot_scale = thumbnail_get_redraw_scale(content, big_width);
|
||||
nsbeos_plot_set_scale(plot_scale);
|
||||
|
||||
/* render the content */
|
||||
|
Loading…
x
Reference in New Issue
Block a user