]> granicus.if.org Git - python/commitdiff
[Bug #457654] bkgd() used a hard-coded A_NORMAL attribute, when it should
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 4 Sep 2001 19:34:32 +0000 (19:34 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 4 Sep 2001 19:34:32 +0000 (19:34 +0000)
    have used the attribute argument provided as a parameter

Modules/_cursesmodule.c

index dfa1012c29813e545d87a3526e6e9052ae4b8e66..a56a67c4af277189b65ab41dfa05bfd8af09d52d 100644 (file)
@@ -524,7 +524,7 @@ PyCursesWindow_Bkgd(PyCursesWindowObject *self, PyObject *args)
     return NULL;
   }
 
-  return PyCursesCheckERR(wbkgd(self->win, bkgd | A_NORMAL), "bkgd");
+  return PyCursesCheckERR(wbkgd(self->win, bkgd | attr), "bkgd");
 }
 
 static PyObject *