aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/rfbplayer/RfbPlayerSetDisplaySize.java
blob: 917b112225b0ea49ee3730d4167928e4e4634ca4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.HorizonLive.RfbPlayer;

import java.applet.*;

public class RfbPlayerSetDisplaySize extends Applet {

  public void init() {
    Applet receiver = null;
    receiver = RfbSharedStatic.refApplet;
    int width = Integer.valueOf(getParameter("DISPLAY_WIDTH")).intValue();
    int height = Integer.valueOf(getParameter("DISPLAY_HEIGHT")).intValue();

    if (receiver != null) {
      ((RfbPlayer)receiver).displaySize(width, height);
    } else
      System.out.println("Couldn't resize RfbPlayer.");
  }

}