From e655fe6a1b2245aa9f8e1e390f8fd7f18c71f64b Mon Sep 17 00:00:00 2001 From: "4680414@qq.com" <4680414@qq.com> Date: Fri, 15 Feb 2019 09:18:37 +0800 Subject: [PATCH] =?UTF-8?q?libscp=20v1=20server=20set=20height=20twice?= =?UTF-8?q?=EF=BC=8Cand=20not=20set=20width.=20so=20fix=20it.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sesman/libscp/libscp_v1s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sesman/libscp/libscp_v1s.c b/sesman/libscp/libscp_v1s.c index 0e72ea1b..27e5ef13 100644 --- a/sesman/libscp/libscp_v1s.c +++ b/sesman/libscp/libscp_v1s.c @@ -133,7 +133,7 @@ enum SCP_SERVER_STATES_E scp_v1s_accept(struct SCP_CONNECTION *c, struct SCP_SES in_uint16_be(c->in_s, cmd); scp_session_set_height(session, cmd); in_uint16_be(c->in_s, cmd); - scp_session_set_height(session, cmd); + scp_session_set_width(session, cmd); in_uint8(c->in_s, sz); if (0 != scp_session_set_bpp(session, sz)) {