Don't skip the first directory entry when reading cursors.

I end up missing the "bottom_right_corner" cursor.
This commit is contained in:
Dima Ryazanov 2012-07-26 01:39:48 -07:00 committed by Kristian Høgsberg
parent f5ccd7a9e6
commit 31c0258ff1

View file

@ -870,7 +870,6 @@ load_all_cursors_from_dir(const char *path, int size,
if (!dir)
return;
ent = readdir(dir);
for(ent = readdir(dir); ent; ent = readdir(dir)) {
#ifdef _DIRENT_HAVE_D_TYPE
if (ent->d_type != DT_UNKNOWN &&