Unverified Commit 9daee31b by Rémi Verschelde Committed by GitHub

Merge pull request #39070 from bruvzg/win7_ignore_empty_tab_driver

Ignore invalid tablet driver name, when non are available.
parents 24ad4894 ef1a305e
......@@ -795,6 +795,9 @@ String OS_Windows::get_current_tablet_driver() const {
}
void OS_Windows::set_current_tablet_driver(const String &p_driver) {
if (get_tablet_driver_count() == 0) {
return;
}
bool found = false;
for (int i = 0; i < get_tablet_driver_count(); i++) {
if (p_driver == get_tablet_driver_name(i)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment