---
title: "兄友弟恭源赖朝 (@leyley) | Hashnode"
description: "C++ & Java Developer. Read the latest articles by 兄友弟恭源赖朝 on Hashnode."
url: "https://hashnode.com/@leyley"
---

@leyley

# 兄友弟恭源赖朝

@leyley · Joined August 2024

C++ & Java Developer

### [Lutris玩proton runtime游戏的一些设置](https://www.leiex.com/lutris-proton-runtime?utm_source=hashnode&utm_medium=feed)

问题：启动就退出，code 256 原因：proton runtime依赖steam runtime，可通过设置STEAM\_COMPAT\_CLIENT\_INSTALL\_PATH这个环境变量解决 一般情况下，只要安装了steam，都可通过使用下列命令（启动lutris前，可写入.bashrc/.zshrc/.profile/.zprofile等文件永久生效） STEAM\_COMPAT\_CLIENT\_

1 min read · [leiex.com](https://www.leiex.com/lutris-proton-runtime?utm_source=hashnode&utm_medium=feed)

[Aug 13](https://hashnode.com/posts/lutris-proton-runtime/6a7dcc06749deba91a86cbfe)

### [Windows 10+WSL2卡死处理](https://www.leiex.com/windows-10-wsl2?utm_source=hashnode&utm_medium=feed)

先看服务状态： sc queryex LxssManager 如果STATE是STOP\_PENDING，说明卡死，需要手动强杀 查到其中的PID字段，用任务管理器杀掉该进程 或使用命令 taskkill /PID 1234 /F 杀掉后，再检查状态，应访是RUNNING，这时候WSL又能启动了 优化项，可减少这种情况 禁用 metadata 同步优化（减少锁） 编辑/etc/wsl.conf，加

1 min read · [leiex.com](https://www.leiex.com/windows-10-wsl2?utm_source=hashnode&utm_medium=feed)

[May 4](https://hashnode.com/posts/windows-10-wsl2/69f85dbd46610fd606b3c0f2)

### [Glad使用总结](https://www.leiex.com/glad-usage?utm_source=hashnode&utm_medium=feed)

和传统的GLEW不同，GLAD类似springboot starter，是一个开源的按需生成OpenGL函数Loader的WEB服务，GLAD2的官方地址为https://gen.glad.sh/，GLAD1的生成地址是https://glad.dav1d.de/，二者的API差异很大，本文以GLAD2的使用为例 使用WEB服务生成代码： 进入GLAD2的WEB页面后，可按Generator（编程语言），OpenGL各API版本，如OpenGL, OpenGL ES, GLX，WGL等，选了AP...

1 min read · [leiex.com](https://www.leiex.com/glad-usage?utm_source=hashnode&utm_medium=feed)

[Jul 19, 2025](https://hashnode.com/posts/glad-usage/687bc7de476f854898e41083)

### [解决QWidget用winId获取HWND而导致Qt程序无事件消息的问题](https://www.leiex.com/qwidget-winid-hwnd-qt-no-event?utm_source=hashnode&utm_medium=feed)

问题原因： 当对一个QWidget调用winId时，默认情况下，Qt会对该窗口进行Native化，从而导致如鼠标等事件被其它原生窗口接管，表现出来的现像就是窗口不响应任何事件 解决思路： 防止Qt窗口Native化 解决办法： 第一步，在创建QApplication对象之前设置： QApplication::setAttribute(Qt::AA\_DontCreateNativeWidgetSiblings); //注意：Qt::AA\_NativeWindows受环境变量 QT\_USE\_NATI...

1 min read · [leiex.com](https://www.leiex.com/qwidget-winid-hwnd-qt-no-event?utm_source=hashnode&utm_medium=feed)

[Jul 7, 2025](https://hashnode.com/posts/qwidget-winid-hwnd-qt-no-event/686be46b73e59df4fb32620a)

### [解决因OpenGL渲染窗口高宽比导致图形变形](https://www.leiex.com/opengl-window-size-aspect-ratio-problem?utm_source=hashnode&utm_medium=feed)

在 OpenGL 中，由于窗口的 宽高比（aspect ratio） 与绘制内容的坐标系统不一致，图像会出现拉伸、压缩等变形现象。为了解决这个问题，可根据窗口的大小调整投影矩阵，确保图像在视觉上保持原始比例。 先通过glViewPort调整视口 void resizeGL(int w, int h) { glViewport(0, 0, w, h); } 再根据窗口高宽比，计算出合适的投

1 min read · [leiex.com](https://www.leiex.com/opengl-window-size-aspect-ratio-problem?utm_source=hashnode&utm_medium=feed)

[Jun 18, 2025](https://hashnode.com/posts/opengl-window-size-aspect-ratio-problem/6852d64743aa1565598acc47)
