Simplification of the Pixel drawing functions

All functions were declared twice. without or with preview.
Only one function with optional preview now.
This commit is contained in:
Thomas Bernard
2018-11-20 12:01:31 +01:00
parent 832617188f
commit 06f7b95b0f
3 changed files with 70 additions and 247 deletions

View File

@@ -62,6 +62,7 @@ typedef uint64_t qword;
typedef void (* Func_action) (void); ///< An action.
typedef void (* Func_btn_action) (int); ///< An action. Used when you click a menu button or trigger a keyboard shortcut.
typedef void (* Func_pixel) (word,word,byte); ///< Set pixel at position (x,y) to color c. Used in load screen to write the data to brush, picture, or preview area.
typedef void (* Func_pixel_opt_preview) (word,word,byte,int); ///< Set pixel at position (x,y) to color c. With optional preview.
typedef byte (* Func_read) (word,word); ///< Read a pixel at position (x,y) on something. Used for example in save to tell if the data is a brush or a picture
typedef void (* Func_clear) (byte);
typedef void (* Func_display) (word,word,word);