MCPcopy Create free account
hub / github.com/badvision/jace / setVideo

Method setVideo

src/main/java/jace/core/Computer.java:127–141  ·  view source on GitHub ↗
(Video video)

Source from the content-addressed store, hash-verified

125 }
126
127 final public void setVideo(Video video) {
128 if (this.video != null && this.video != video) {
129 getMotherboard().removeChildDevice(this.video);
130 }
131 this.video = video;
132 if (video != null) {
133 getMotherboard().addChildDevice(video);
134 video.configureVideoMode();
135 video.reconfigure();
136 }
137 if (JaceApplication.getApplication() != null) {
138 JaceApplication.getApplication().reconnectUIHooks();
139 JaceApplication.getApplication().controller.connectVideo(video);
140 }
141 }
142
143 final public CPU getCpu() {
144 return cpu;

Callers 1

reconfigureMethod · 0.80

Calls 8

getMotherboardMethod · 0.95
getApplicationMethod · 0.95
removeChildDeviceMethod · 0.80
addChildDeviceMethod · 0.80
reconnectUIHooksMethod · 0.80
connectVideoMethod · 0.80
reconfigureMethod · 0.65
configureVideoModeMethod · 0.45

Tested by

no test coverage detected