remove unecessary css includes from fronetends
This commit is contained in:
parent
02bbaa3e88
commit
30f118a86d
|
@ -21,7 +21,6 @@
|
|||
#include "content/fetchers.h"
|
||||
#include "content/fetchers/resource.h"
|
||||
#include "content/urldb.h"
|
||||
#include "css/utils.h"
|
||||
#include "desktop/browser_history.h"
|
||||
#include "desktop/browser_private.h"
|
||||
#include "desktop/hotlist.h"
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
#include "content/content.h"
|
||||
#include "content/hlcache.h"
|
||||
#include "content/urldb.h"
|
||||
#include "css/css.h"
|
||||
#include "utils/log.h"
|
||||
#include "utils/messages.h"
|
||||
#include "utils/utils.h"
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
|
||||
#include <stdbool.h>
|
||||
|
||||
#include "css/css.h"
|
||||
#include "desktop/font.h"
|
||||
#include "utils/utf8.h"
|
||||
#include "utils/log.h"
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#include "content/fetch.h"
|
||||
#include "content/fetchers/resource.h"
|
||||
#include "content/backing_store.h"
|
||||
#include "css/utils.h"
|
||||
#include "desktop/gui.h"
|
||||
#include "desktop/plotters.h"
|
||||
#include "desktop/netsurf.h"
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#include "content/content.h"
|
||||
#include "content/hlcache.h"
|
||||
#include "content/urldb.h"
|
||||
#include "css/css.h"
|
||||
|
||||
#include "atari/res/netsurf.rsh"
|
||||
#include "atari/gemtk/gemtk.h"
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
#include <String.h>
|
||||
#include <View.h>
|
||||
extern "C" {
|
||||
#include "css/css.h"
|
||||
#include "desktop/font.h"
|
||||
#include "utils/utils.h"
|
||||
#include "utils/log.h"
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
extern "C" {
|
||||
#include "content/content.h"
|
||||
#include "content/urldb.h"
|
||||
#include "css/utils.h"
|
||||
#include "desktop/browser_private.h"
|
||||
#include "desktop/mouse.h"
|
||||
#include "utils/nsoption.h"
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
|
||||
#import "desktop/gui.h"
|
||||
#import "content/urldb.h"
|
||||
#import "css/utils.h"
|
||||
#import "desktop/gui.h"
|
||||
#import "desktop/mouse.h"
|
||||
#import "desktop/netsurf.h"
|
||||
|
@ -41,7 +40,6 @@
|
|||
#import "utils/log.h"
|
||||
#import "utils/messages.h"
|
||||
#import "utils/utils.h"
|
||||
#import "css/utils.h"
|
||||
|
||||
#ifndef NETSURF_HOMEPAGE
|
||||
#define NETSURF_HOMEPAGE "http://www.netsurf-browser.org/welcome/"
|
||||
|
|
|
@ -21,7 +21,6 @@
|
|||
#import "cocoa/plotter.h"
|
||||
#import "cocoa/font.h"
|
||||
|
||||
#import "css/css.h"
|
||||
#import "utils/nsoption.h"
|
||||
#import "desktop/font.h"
|
||||
#import "desktop/plotters.h"
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
#include "utils/messages.h"
|
||||
#include "utils/utils.h"
|
||||
#include "desktop/plot_style.h"
|
||||
#include "css/css.h"
|
||||
|
||||
#include "riscos/gui.h"
|
||||
#include "riscos/font.h"
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
|
||||
#include <windows.h>
|
||||
|
||||
#include "css/css.h"
|
||||
#include "desktop/font.h"
|
||||
#include "utils/nsoption.h"
|
||||
#include "utils/utf8.h"
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
|
||||
#include "content/urldb.h"
|
||||
#include "content/fetch.h"
|
||||
#include "css/utils.h"
|
||||
#include "desktop/browser_history.h"
|
||||
#include "desktop/browser.h"
|
||||
#include "desktop/mouse.h"
|
||||
|
@ -1159,21 +1158,20 @@ static HWND nsws_window_create_statusbar(struct gui_window *w)
|
|||
return hwnd;
|
||||
}
|
||||
|
||||
static css_fixed get_window_dpi(HWND hwnd)
|
||||
static int get_window_dpi(HWND hwnd)
|
||||
{
|
||||
HDC hdc = GetDC(hwnd);
|
||||
int dpi = GetDeviceCaps(hdc, LOGPIXELSY);
|
||||
css_fixed fix_dpi = INTTOFIX(96);
|
||||
|
||||
if (dpi > 10) {
|
||||
fix_dpi = INTTOFIX(dpi);
|
||||
if (dpi <= 10) {
|
||||
dpi = 96; /* 96DPI is the default */
|
||||
}
|
||||
|
||||
ReleaseDC(hwnd, hdc);
|
||||
|
||||
LOG(("FIX DPI %x", fix_dpi));
|
||||
LOG(("FIX DPI %d", dpi));
|
||||
|
||||
return fix_dpi;
|
||||
return dpi;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue