X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fedit_field.c;h=5ac096dcfb7b59aba8c1a9b3ab690d79a978128e;hp=b24002815bcb28f0792140fced0f622267cc3378;hb=b35ecb17e0406b48556609207aa52e9fee15cec6;hpb=b5df67bc6814f67b5562171c53e3720a30819bba diff --git a/test/edit_field.c b/test/edit_field.c index b2400281..5ac096dc 100644 --- a/test/edit_field.c +++ b/test/edit_field.c @@ -26,7 +26,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: edit_field.c,v 1.14 2008/10/18 20:40:20 tom Exp $ + * $Id: edit_field.c,v 1.15 2008/12/20 19:23:01 tom Exp $ * * A wrapper for form_driver() which keeps track of the user's editing changes * for each field, and makes the result available as a null-terminated string @@ -294,8 +294,8 @@ offset_in_field(FORM * form) static void inactive_field(FIELD * f) { - void *ptr = field_userptr(f); - set_field_back(f, (chtype) ptr); + FieldAttrs *ptr = (FieldAttrs *) field_userptr(f); + set_field_back(f, ptr->background); } int