| 68 | }; |
| 69 | |
| 70 | void LoadImage(char* path){ |
| 71 | if(!path){ |
| 72 | Lemon::GUI::DisplayMessageBox("LemonPaint", "Invalid Filepath"); |
| 73 | return; |
| 74 | } |
| 75 | |
| 76 | if(canvas->surface.buffer){ |
| 77 | free(canvas->surface.buffer); |
| 78 | } |
| 79 | |
| 80 | Lemon::Graphics::LoadImage(path, &canvas->surface); |
| 81 | |
| 82 | canvas->ResetScrollbars(); |
| 83 | } |
| 84 | |
| 85 | void SaveImage(char* path){ |
| 86 | if(!path){ |
no test coverage detected