aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormitchell <unknown>2020-06-06 21:30:54 -0400
committermitchell <unknown>2020-06-06 21:30:54 -0400
commit86007a79c530def61932314f3261bdc1f8d4256e (patch)
tree9da30c5f6dd1a8bbdd448e4570b484fcef80bf47
parenteb06f94013a5674211d50f6dc4ae902075c29a11 (diff)
downloadscintilla-mirror-86007a79c530def61932314f3261bdc1f8d4256e.tar.gz
Updated curses sample program.
-rw-r--r--curses/jinx/jinx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/curses/jinx/jinx.c b/curses/jinx/jinx.c
index 3570fd4bb..c9b1f5b58 100644
--- a/curses/jinx/jinx.c
+++ b/curses/jinx/jinx.c
@@ -12,15 +12,15 @@
typedef void Scintilla;
-void scnotification(Scintilla *view, int msg, void *lParam, void *wParam) {
- //struct SCNotification *scn = (struct SCNotification *)lParam;
- //printw("SCNotification received: %i", scn->nmhdr.code);
+void scnotification(Scintilla *view, int msg, SCNotification *n, void *userdata)
+{
+ //printw("SCNotification received: %i", n->nmhdr.code);
}
int main(int argc, char **argv) {
setlocale(LC_CTYPE, ""); // for displaying UTF-8 characters properly
initscr(), raw(), cbreak(), noecho(), start_color();
- Scintilla *sci = scintilla_new(scnotification);
+ Scintilla *sci = scintilla_new(scnotification, NULL);
curs_set(0); // Scintilla draws its own cursor
SSM(SCI_STYLESETFORE, STYLE_DEFAULT, 0xFFFFFF);