Notices


Reply
Thread Tools
Posts: 330 | Thanked: 57 times | Joined on May 2007 @ BKNYC
#31
I second that motion, don't need to hildon it,
Fullscreen was a great help....much bigger screen to draw on now.
1 suggestion, map the directional keys to removing the toolbars.
such as the
Show Main Toolbar = up
show tools toolbar = down
show settings toolbar = left
show palette = right
>>>>>> Toggle image view = ??? [especially needed, when removed, restarting the device is the only way to bring it back on the n800.] <<<<
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#32
You mean restarting mtpaint
Okay, will do.
 
Posts: 330 | Thanked: 57 times | Joined on May 2007 @ BKNYC
#33
correctumundo..
restarting mtpaint is the only way of bring back the toolbars
after toggle image view is activated.

Originally Posted by Bundyo View Post
You mean restarting mtpaint
Okay, will do.
 
Posts: 551 | Thanked: 46 times | Joined on Oct 2007
#34
Nice work. Keep developing it.
Dan
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#35
I'm not developing it I'm just "hacking" it...
 
Posts: 330 | Thanked: 57 times | Joined on May 2007 @ BKNYC
#36
Are you going to start a garage page for this?
also the code you use for fullscreen, can I take a look?
Will you make the modified source available?
Theres a couple of apps I would like to use in the same
fullscreen mode that you have mtpaint running.
but I know very little about developing,
but like you I like hacking away at source code.
Also notice no lag when painting, How?
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#37
I really want to progress more on this before i set up garage page. Garage page is worthless and confusing if there's nothing or no progress in it

The code is nothing special - i think i patched only two files:

Code:
--- dxxorig/mtpaint-3.20.orig/src/mainwindow.c 
+++ mtpaint-3.20/src/mainwindow.c 
@@ -114,6 +114,8 @@
 int files_passed, file_arg_start, drag_index_vals[2], cursor_corner;
 char **global_argv;
 
+int fullscreen;
+
 GdkGC *dash_gc;
 
 
@@ -816,10 +818,13 @@
 
 static key_action main_keys[] = {
 	{"QUIT",	ACT_QUIT, GDK_q, 0, 0},
+	{"TO_FULLSCR",	ACT_FULLSCR, GDK_F6, _CS, 0},
 	{"ZOOM_IN",	ACT_ZOOM_IN, GDK_plus, _CS, 0},
 	{"",		ACT_ZOOM_IN, GDK_KP_Add, _CS, 0},
+	{"",		ACT_ZOOM_IN, GDK_F7, _CS, 0},
 	{"ZOOM_OUT",	ACT_ZOOM_OUT, GDK_minus, _CS, 0},
 	{"",		ACT_ZOOM_OUT, GDK_KP_Subtract, _CS, 0},
+	{"",		ACT_ZOOM_OUT, GDK_F8, _CS, 0},
 	{"ZOOM_01",	ACT_ZOOM_01, GDK_KP_1, _CS, 0},
 	{"",		ACT_ZOOM_01, GDK_1, _CS, 0},
 	{"ZOOM_025",	ACT_ZOOM_025, GDK_KP_2, _CS, 0},
@@ -931,8 +936,10 @@
 	{"",		ACT_TO_MASK, GDK_4, _CS, _S},
 	{"VWZOOM_IN",	ACT_VWZOOM_IN, GDK_plus, _CS, _S},
 	{"",		ACT_VWZOOM_IN, GDK_KP_Add, _CS, _S},
+	{"",		ACT_VWZOOM_IN, GDK_F7, _CS, _S},
 	{"VWZOOM_OUT",	ACT_VWZOOM_OUT, GDK_minus, _CS, _S},
 	{"",		ACT_VWZOOM_OUT, GDK_KP_Subtract, _CS, _S},
+	{"",		ACT_VWZOOM_OUT, GDK_F8, _CS, _S},
 	{NULL,		0, 0, 0, 0}
 };
 
@@ -1010,6 +1017,15 @@
 
 	switch (action)
 	{
+	case ACT_FULLSCR:
+		if (fullscreen == TRUE) {
+		    gtk_window_unfullscreen(GTK_WINDOW(main_window));
+		    fullscreen = FALSE;
+		} else {
+		    gtk_window_fullscreen(GTK_WINDOW(main_window));
+		    fullscreen = TRUE;
+		}
+		return (TRUE);
 	case ACT_SEL_LEFT: change = 1;
 	case ACT_SEL_2LEFT:
 		move_mouse(-change, 0, 0);
@@ -3917,6 +3933,11 @@
 ///	MAIN WINDOW
 
 	main_window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
+	
+	fullscreen = TRUE;
+	
+	gtk_window_fullscreen(GTK_WINDOW(main_window));
+	
 	gtk_widget_set_usize(main_window, 100, 100);		// Set minimum width/height
 	win_restore_pos(main_window, "window", 0, 0, 630, 400);
 	gtk_window_set_title (GTK_WINDOW (main_window), VERSION );
Code:
--- dxxorig/mtpaint-3.20.orig/src/mainwindow.h 
+++ mtpaint-3.20/src/mainwindow.h 
@@ -87,6 +87,7 @@
 #define ACT_TO_MASK	65
 #define ACT_VWZOOM_IN	66
 #define ACT_VWZOOM_OUT	67
+#define ACT_FULLSCR	68
 
 int wtf_pressed(GdkEventKey *event);
Lag?

EDIT: Fixed some warnings.

Last edited by Bundyo; 2008-03-18 at 06:30.
 
Posts: 330 | Thanked: 57 times | Joined on May 2007 @ BKNYC
#38
When i compiled it a while back, painting was so smooth.
the bigger the i made the brush the slower it got.
but i don't notice this with yours.
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#39
Dunno, didn't touch anything connected with the painting. Probably a bug that was fixed upstream?
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#40
New version, first post updated.
 

The Following User Says Thank You to Bundyo For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:58.