mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 19:08:55 -04:00
fix bug LP 996478: Resetting default mouse cursor causes error message popup
This commit is contained in:
parent
c707de0661
commit
d1c80b3876
@ -2613,6 +2613,11 @@ get_icon(const Filename &filename) {
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
HCURSOR WinGraphicsWindow::
|
HCURSOR WinGraphicsWindow::
|
||||||
get_cursor(const Filename &filename) {
|
get_cursor(const Filename &filename) {
|
||||||
|
// The empty filename means to disable a custom cursor.
|
||||||
|
if (filename.empty()) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// First, look for the unresolved filename in our index.
|
// First, look for the unresolved filename in our index.
|
||||||
IconFilenames::iterator fi = _cursor_filenames.find(filename);
|
IconFilenames::iterator fi = _cursor_filenames.find(filename);
|
||||||
if (fi != _cursor_filenames.end()) {
|
if (fi != _cursor_filenames.end()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user