File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ Pre-compiled library files are available in the releases tab (only for Linux x86
31
31
32
32
int main()
33
33
{
34
- pluto_init_window(false ); /* Initialize pluto without anti-aliasing */
34
+ pluto_init_window(); /* Initialize pluto */
35
35
pluto_save_screen(); /* Save screen (restored later) */
36
36
37
37
for (;;)
@@ -44,8 +44,8 @@ int main()
44
44
}
45
45
}
46
46
47
- pluto_write_out(); /* Write to outbuffer */
48
- pluto_render(); /* Render the outbuffer */
47
+ pluto_write_out(); /* Write to outbuffer */
48
+ pluto_render(); /* Render the outbuffer */
49
49
}
50
50
51
51
pluto_deinit();
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ typedef struct
68
68
extern pluto_lib_t _pluto_canvas ;
69
69
/* Instance */
70
70
71
+ extern void pluto_init_window ();
72
+
71
73
extern void pluto_render ();
72
74
/* Draw frame to stdout */
73
75
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ void pluto_render()
142
142
if (_pluto_canvas .use_write )
143
143
{
144
144
#if defined(__unix__ ) || defined(__linux__ ) || defined(BSD ) || defined(__APPLE__ )
145
- write (1 , _pluto_canvas .buffer , _pluto_canvas .bufsize );
145
+ ( void ) write (STDOUT_FILENO , _pluto_canvas .buffer , _pluto_canvas .bufsize );
146
146
#else
147
147
fputs ((char * )_pluto_canvas .buffer , stdout );
148
148
fflush (stdout );
@@ -155,4 +155,4 @@ void pluto_render()
155
155
}
156
156
_pluto_unlock_term ();
157
157
_pluto_canvas .busy = false;
158
- }
158
+ }
You can’t perform that action at this time.
0 commit comments