Difference between revisions of "IS MOD"

From LFS Manual
Jump to navigationJump to search
(Initial page creation of IS_MOD)
 
Line 1: Line 1:
== Introductions ==
+
== Introduction ==
  
The IS_MOD or screen MODe can be used to change screen mode via insim.
+
The '''MOD'''e packet can be used to change screen mode.
  
<big><pre>struct IS_MOD // MODe: send to LFS to change screen mode
+
{| class="wikitable"
{
+
|+ IS_MSL packet properties
byte Size; // 20
+
|-
byte Type; // ISP_MOD
+
! Type !! Name !! Description
byte ReqI; // 0
+
|-
byte Zero;
+
| byte
 +
| Size
 +
| 20
 +
|-
 +
| byte
 +
| Type
 +
| ISP_MOD
 +
|-
 +
| byte
 +
| ReqI
 +
| 0
 +
|-
 +
| byte
 +
| Zero
 +
|
 +
|-
 +
| int
 +
| Bits16
 +
| set to choose 16-bit
 +
|-
 +
| int
 +
| RR
 +
| refresh rate - zero for default
 +
|-
 +
| int
 +
| Width
 +
| 0 means go to window
 +
|-
 +
| int
 +
| Height
 +
| 0 means go to window
 +
|}
  
int Bits16; // set to choose 16-bit
+
== Packet Details ==
int RR; // refresh rate - zero for default
 
int Width; // 0 means go to window
 
int Height; // 0 means go to window
 
};</pre></big>
 
 
 
== Packet Detail ==
 
  
 
=== Size ===
 
=== Size ===
Line 24: Line 49:
 
=== Type ===
 
=== Type ===
  
The packet type from the ISP_ enumeration, always ISP_MOD.
+
The packet type from the [[InSim_enumerations#ISP|ISP_]] enumeration, always ISP_MOD.
  
 
=== ReqI ===
 
=== ReqI ===
  
 
Not used
 
Not used
 +
 +
=== Bits16 ===
 +
 +
Set to choose 16-bit.
 +
 +
=== RR ===
 +
 +
The refresh rate to set, zero for default refresh rate.
 +
 +
=== Width ===
 +
 +
The screen resolution width. Set to zero for windowed mode.
 +
 +
=== Height ===
 +
 +
The screen resolution height. Set to zero for windowed mode.
  
 
[[Category:InSim packets]]
 
[[Category:InSim packets]]

Revision as of 21:21, 9 February 2026

Introduction

The MODe packet can be used to change screen mode.

IS_MSL packet properties
Type Name Description
byte Size 20
byte Type ISP_MOD
byte ReqI 0
byte Zero
int Bits16 set to choose 16-bit
int RR refresh rate - zero for default
int Width 0 means go to window
int Height 0 means go to window

Packet Details

Size

The size of the packet, 20 bytes.

Type

The packet type from the ISP_ enumeration, always ISP_MOD.

ReqI

Not used

Bits16

Set to choose 16-bit.

RR

The refresh rate to set, zero for default refresh rate.

Width

The screen resolution width. Set to zero for windowed mode.

Height

The screen resolution height. Set to zero for windowed mode.