From e5c98bc7e3d8ff5831864c19e3bcc8e0d9cb8f53 Mon Sep 17 00:00:00 2001 From: Don Pellegrino Date: Sat, 13 Jun 2009 21:52:26 +0000 Subject: Added selection status fields and removed points loaded field. It is assumed that ROWS is the number of points loaded. This needs to be updated so that it is a dynamic run-time value. --- diff --git a/src/model/exp004state.h b/src/model/exp004state.h index e45f679..669e4cb 100644 --- a/src/model/exp004state.h +++ b/src/model/exp004state.h @@ -67,11 +67,6 @@ typedef struct } viewport; /* - * Points loaded. - */ - int points; - - /* * Buffer objects. */ unsigned int buffers[1]; @@ -96,6 +91,21 @@ typedef struct */ bool selection[ROWS]; + /* + * Indicate if the user is currently defining a selection. + */ + bool selecting; + + /* + * X coordinate of mouse when selection mode initiated. + */ + int select_x; + + /* + * Y coordinate of mouse when selection mode initiated. + */ + int select_y; + } EXP004STATE; #endif // EXP004STATE_H -- cgit v0.8.3.1-22-g547a