1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix(driver): lv_x11_input.c fixes (#6033)

This commit is contained in:
liamHowatt 2024-04-08 09:10:48 -04:00 committed by GitHub
parent 466e29a1be
commit b49638accd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,12 +10,11 @@
#if LV_USE_X11
#include <string.h>
#include <stdbool.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include "../../stdlib/lv_string.h"
#include "../../widgets/image/lv_image.h"
#include "../../core/lv_obj.h"
/*********************
* DEFINES
@ -274,7 +273,6 @@ static lv_indev_t * lv_x11_keyboard_create(lv_display_t * disp)
static lv_indev_t * lv_x11_mouse_create(lv_display_t * disp, lv_image_dsc_t const * symb)
{
lv_indev_t * indev = lv_indev_create();
LV_ASSERT_OBJ(indev, MY_CLASS);
if(NULL != indev) {
lv_indev_set_type(indev, LV_INDEV_TYPE_POINTER);
lv_indev_set_read_cb(indev, x11_mouse_read_cb);
@ -293,7 +291,6 @@ static lv_indev_t * lv_x11_mouse_create(lv_display_t * disp, lv_image_dsc_t cons
static lv_indev_t * lv_x11_mousewheel_create(lv_display_t * disp)
{
lv_indev_t * indev = lv_indev_create();
LV_ASSERT_OBJ(indev, MY_CLASS);
if(NULL != indev) {
lv_indev_set_type(indev, LV_INDEV_TYPE_ENCODER);
lv_indev_set_read_cb(indev, x11_mousewheel_read_cb);