@@ -14,14 +14,14 @@ public class Jorts.NoteData : Object {
1414
1515 // Will determine properties (or lack thereof) for any new note
1616 public static Jorts . Themes latest_theme = Jorts . Constants . DEFAULT_THEME ;
17- public static uint8 ? latest_zoom = Jorts . Constants . DEFAULT_ZOOM ;
17+ public static uint16 ? latest_zoom = Jorts . Constants . DEFAULT_ZOOM ;
1818 public static bool latest_mono = Jorts . Constants . DEFAULT_MONO ;
1919
2020 public string title;
2121 public Jorts . Themes theme;
2222 public string content;
2323 public bool monospace;
24- public uint8 zoom;
24+ public uint16 zoom;
2525 public int width;
2626 public int height;
2727
@@ -30,7 +30,7 @@ public class Jorts.NoteData : Object {
3030 * Convert into a Json.Object()
3131 */
3232 public NoteData (string ? title = null , Jorts .Themes ? theme = null , string ? content = null ,
33- bool ? monospace = null , uint8 ? zoom = null , int ? width = null , int ? height = null )
33+ bool ? monospace = null , uint16 ? zoom = null , int ? width = null , int ? height = null )
3434 {
3535 // We assign defaults in case theres args missing
3636 this . title = title ?? Jorts . Utils . random_title ();
@@ -52,7 +52,7 @@ public class Jorts.NoteData : Object {
5252 theme = Jorts . Themes . from_string (themestring);
5353 content = node. get_string_member_with_default (" content" ," " );
5454 monospace = node. get_boolean_member_with_default (" monospace" ,Jorts . Constants . DEFAULT_MONO );
55- zoom = (uint8 )node. get_int_member_with_default (" zoom" ,Jorts . Constants . DEFAULT_ZOOM );
55+ zoom = (uint16 )node. get_int_member_with_default (" zoom" ,Jorts . Constants . DEFAULT_ZOOM );
5656
5757 // Make sure the values are nothing crazy
5858 if (zoom < Jorts . Constants . ZOOM_MIN ) { zoom = Jorts . Constants . ZOOM_MIN ;}
0 commit comments