MCPcopy Create free account
hub / github.com/demoth/jake2 / GetModeInfo

Method GetModeInfo

client/src/main/java/jake2/client/VID.java:109–122  ·  view source on GitHub ↗
(Dimension dim, int mode)

Source from the content-addressed store, hash-verified

107 static vidmode_t fs_modes[];
108
109 public static boolean GetModeInfo(Dimension dim, int mode) {
110 if (fs_modes == null) initModeList();
111
112 vidmode_t[] modes = vid_modes;
113 if (vid_fullscreen.value != 0.0f) modes = fs_modes;
114
115 if (mode < 0 || mode >= modes.length)
116 return false;
117
118 dim.width = modes[mode].width;
119 dim.height = modes[mode].height;
120
121 return true;
122 }
123
124 /*
125 ** VID_NewWindow

Callers 1

setModeMethod · 0.95

Calls 1

initModeListMethod · 0.95

Tested by

no test coverage detected