aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2020-11-30 02:24:38 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2020-11-30 02:24:38 +0000
commitadde947fc5ffc3d143040a984d0907262ac279bc (patch)
tree1b29a75414035349d6178509e5660d917484cbc0 /server.c
parentMerge branch 'base64-optimize' (diff)
config: replace union in config struct with simple width/height members
Diffstat (limited to 'server.c')
-rw-r--r--server.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/server.c b/server.c
index 6e2f514f..e6c3aae3 100644
--- a/server.c
+++ b/server.c
@@ -265,18 +265,8 @@ fdm_client(struct fdm *fdm, int fd, int events, void *data)
if (cdata.width > 0 && cdata.height > 0) {
client->conf.size.type = cdata.size_type;
-
- switch (cdata.size_type) {
- case CONF_SIZE_PX:
- client->conf.size.px.width = cdata.width;
- client->conf.size.px.height = cdata.height;
- break;
-
- case CONF_SIZE_CELLS:
- client->conf.size.cells.width = cdata.width;
- client->conf.size.cells.height = cdata.height;
- break;
- }
+ client->conf.size.width = cdata.width;
+ client->conf.size.height = cdata.height;
}
client->term = term_init(