mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset efe0a3f79333 (bug 803299)
This commit is contained in:
parent
3daddbf54f
commit
803a9a2ae3
@ -362,9 +362,6 @@ pref("gfx.displayport.strategy_pb.threshold", -1); // velocity threshold in inch
|
||||
// (see bug 700023, bug 846832, bug 847344)
|
||||
pref("gfx.font_rendering.graphite.enabled", false);
|
||||
|
||||
// Allow 24-bit colour when the hardware supports it
|
||||
pref("gfx.android.rgb16.force", false);
|
||||
|
||||
// don't allow JS to move and resize existing windows
|
||||
pref("dom.disable_window_move_resize", true);
|
||||
|
||||
|
@ -2191,15 +2191,6 @@ abstract public class GeckoApp
|
||||
}
|
||||
|
||||
protected void connectGeckoLayerClient() {
|
||||
// See if we want to force 16-bit colour before doing anything
|
||||
PrefsHelper.getPref("gfx.android.rgb16.force", new PrefsHelper.PrefHandlerBase() {
|
||||
@Override public void prefValue(String pref, boolean force16bit) {
|
||||
if (force16bit) {
|
||||
GeckoAppShell.setScreenDepthOverride(16);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
mLayerView.getLayerClient().notifyGeckoReady();
|
||||
|
||||
mLayerView.addTouchInterceptor(this);
|
||||
|
@ -1385,7 +1385,7 @@ public class GeckoAppShell
|
||||
* Returns the colour depth of the default screen. This will either be
|
||||
* 24 or 16.
|
||||
*/
|
||||
public static synchronized int getScreenDepth() {
|
||||
public static int getScreenDepth() {
|
||||
if (sScreenDepth == 0) {
|
||||
switch (GeckoApp.mAppContext.getWindowManager().getDefaultDisplay().getPixelFormat()) {
|
||||
case PixelFormat.RGBA_8888 :
|
||||
@ -1402,15 +1402,6 @@ public class GeckoAppShell
|
||||
return sScreenDepth;
|
||||
}
|
||||
|
||||
public static synchronized void setScreenDepthOverride(int aScreenDepth) {
|
||||
if (sScreenDepth != 0) {
|
||||
Log.e(LOGTAG, "Tried to override screen depth after it's already been set");
|
||||
return;
|
||||
}
|
||||
|
||||
sScreenDepth = aScreenDepth;
|
||||
}
|
||||
|
||||
public static void setFullScreen(boolean fullscreen) {
|
||||
if (getGeckoInterface() != null)
|
||||
getGeckoInterface().setFullScreen(fullscreen);
|
||||
|
Loading…
Reference in New Issue
Block a user