internal CanvasFrame\u00241([In] CanvasFrame obj0, [In] DisplayMode obj1, [In] bool obj2, [In] double obj3) { int num = obj2 ? 1 : 0; this.this\u00240 = obj0; this.val\u0024displayMode = obj1; this.val\u0024fullScreen = num != 0; this.val\u0024gamma = obj3; base.\u002Ector(); }
public static void tile(CanvasFrame[] frames) { CanvasFrame\u00241MovedListener frame1MovedListener = new CanvasFrame\u00241MovedListener(); int num1 = (int) Math.round(Math.sqrt((double) frames.Length)); if (num1 * num1 < frames.Length) ++num1; int num2 = 0; int num3 = 0; int num4 = 0; for (int index1 = 0; index1 < frames.Length; ++index1) { int index2 = index1; int num5 = num2; int num6 = num3; int num7; try { frame1MovedListener.moved = false; EventQueue.invokeAndWait((Runnable) new CanvasFrame\u00243(frames, index2, frame1MovedListener, num5, num6)); num7 = 0; goto label_9; } catch (Exception ex) { int num8 = 2; if (ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num8) == null) throw; } // ISSUE: variable of the null type __Null local = null; goto label_28; label_9: CanvasFrame canvasFrame; Exception exception1; while (true) { try { if (!frame1MovedListener.moved) { if (num7 < 5) { Monitor.Enter((object) (canvasFrame = frames[index2])); try { Object.instancehelper_wait((object) frames[index2], 100L); Monitor.Exit((object) canvasFrame); } catch (Exception ex) { int num8 = 0; exception1 = (Exception) ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num8); break; } } else goto label_23; } else goto label_23; } catch (Exception ex) { int num8 = 2; if (ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num8) == null) throw; else goto label_17; } ++num7; } Exception exception2 = exception1; try { Exception exception3 = exception2; Monitor.Exit((object) canvasFrame); throw Throwable.__\u003Cunmap\u003E(exception3); } catch (Exception ex) { int num8 = 2; if (ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num8) == null) throw; } local = null; goto label_28; label_17: local = null; goto label_28; label_23: try { EventQueue.invokeAndWait((Runnable) new CanvasFrame\u00244(frames, index2, frame1MovedListener)); goto label_29; } catch (Exception ex) { int num8 = 2; if (ByteCodeHelper.MapException<Exception>(ex, (ByteCodeHelper.MapFlags) num8) == null) throw; } local = null; label_28: label_29: num2 = ((Component) frames[index1]).getX() + ((Component) frames[index1]).getWidth(); num4 = Math.max(num4, ((Component) frames[index1]).getY() + ((Component) frames[index1]).getHeight()); int num9 = index1 + 1; int num10 = num1; int num11 = -1; if ((num10 != num11 ? num9 % num10 : 0) == 0) { num2 = 0; num3 = num4; } } }
static CanvasFrame() { JFrame.__\u003Cclinit\u003E(); CanvasFrame.global = (CanvasFrame) null; }
public virtual CanvasFrame createCanvasFrame() { if (this.settings.getScreenNumber() < 0) return (CanvasFrame) null; DisplayMode displayMode = new DisplayMode(this.settings.getImageWidth(), this.settings.getImageHeight(), this.settings.getBitDepth(), this.settings.getRefreshRate()); CanvasFrame.__\u003Cclinit\u003E(); CanvasFrame canvasFrame = new CanvasFrame(this.settings.getName(), this.settings.getScreenNumber(), displayMode, this.settings.getResponseGamma()); canvasFrame.setLatency(this.settings.getLatency()); Dimension canvasSize = canvasFrame.getCanvasSize(); if (canvasSize.width != this.imageWidth || canvasSize.height != this.imageHeight) this.rescale((int) canvasSize.width, (int) canvasSize.height); return canvasFrame; }