aboutsummaryrefslogtreecommitdiffstats
path: root/demos/3rdparty/notepad-2/notepadCore.h
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-06-02 18:59:12 +1000
committerinmarket <andrewh@inmarket.com.au>2013-06-02 18:59:12 +1000
commit8a5596b39d44d7fe1fbb359cd436fe23cde97339 (patch)
tree7f29b431f4a3c25d2688b8e1d8aec16fa0975c82 /demos/3rdparty/notepad-2/notepadCore.h
parente9f60dae385f1c7b58d1ae26a00d051da40f65d3 (diff)
downloaduGFX-8a5596b39d44d7fe1fbb359cd436fe23cde97339.tar.gz
uGFX-8a5596b39d44d7fe1fbb359cd436fe23cde97339.tar.bz2
uGFX-8a5596b39d44d7fe1fbb359cd436fe23cde97339.zip
Notepad-2 demo updated to work on ChibiOS or pure Win32 compile
Diffstat (limited to 'demos/3rdparty/notepad-2/notepadCore.h')
-rw-r--r--demos/3rdparty/notepad-2/notepadCore.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/demos/3rdparty/notepad-2/notepadCore.h b/demos/3rdparty/notepad-2/notepadCore.h
index b4f1b185..937a023b 100644
--- a/demos/3rdparty/notepad-2/notepadCore.h
+++ b/demos/3rdparty/notepad-2/notepadCore.h
@@ -28,6 +28,8 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Modified by InMarket to allow it to compile on any GFX supported operating system.
*/
#ifndef NOTEPADCORE_H_
@@ -35,17 +37,17 @@
/* Configuration */
#define NCORE_THD_STACK_SIZE 256
-#define NCORE_THD_PRIO (NORMALPRIO + 1)
+#define NCORE_THD_PRIO NORMAL_PRIORITY
#define NCORE_MODE_DRAW 0
#define NCORE_MODE_ERASE 1
#define NCORE_MODE_FILL 2
-#define MAX_DX 500
-#define MAX_DY 500
+#define MAX_DX 5000
+#define MAX_DY 5000
/* Spawn the notepad core thread */
-void ncoreSpawnDrawThread(GHandle drawingArea, BaseSequentialStream *statusConsole);
+void ncoreSpawnDrawThread(GHandle drawingArea, GHandle statusConsole);
/* Terminate the core thread, wait for control release */
void ncoreTerminateDrawThread(void);