mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Initial bw scale comes from core.
This commit is contained in:
parent
a96ba0369c
commit
c4829ca636
@ -91,7 +91,7 @@ struct s_focus_info
|
||||
#define CDT_ICON 0x04UL
|
||||
#define CDT_ICON_TYPE 0x05UL
|
||||
# define CDT_ICON_TYPE_NONE 0x00UL
|
||||
# define CDT_ICON_TYPE_OBJECT 0x01UL
|
||||
# define CDT_ICON_TYPE_OBJECT 0x01UL
|
||||
# define CDT_ICON_TYPE_BITMAP 0x02UL
|
||||
|
||||
|
||||
@ -127,9 +127,9 @@ struct s_gui_win_root
|
||||
};
|
||||
typedef struct s_gui_win_root ROOTWIN;
|
||||
|
||||
struct s_browser
|
||||
{
|
||||
struct browser_window * bw;
|
||||
struct s_browser
|
||||
{
|
||||
struct browser_window * bw;
|
||||
bool attached;
|
||||
};
|
||||
|
||||
@ -147,6 +147,7 @@ struct gui_window {
|
||||
char * status;
|
||||
char * title;
|
||||
char * url;
|
||||
float scale;
|
||||
struct bitmap * icon;
|
||||
struct s_caret caret;
|
||||
struct s_search_form_session *search;
|
||||
|
@ -286,10 +286,7 @@ int window_create(struct gui_window * gw,
|
||||
assert(gw->browser);
|
||||
|
||||
gw->browser->bw = bw;
|
||||
if(existing)
|
||||
gw->browser->bw->scale = existing->browser->bw->scale;
|
||||
else
|
||||
gw->browser->bw->scale = 1;
|
||||
gw->scale = browser_window_get_scale(bw);
|
||||
|
||||
|
||||
/* create statusbar component: */
|
||||
|
Loading…
Reference in New Issue
Block a user