| 173 | |
| 174 | |
| 175 | void g2d_display::unload_image(image_handle const p_image_handle) |
| 176 | { |
| 177 | g2d_image g2dimg; |
| 178 | g2dimg.m_g2d_buffer = reinterpret_cast < struct g2d_buf * > (p_image_handle); |
| 179 | auto iter = m_g2d_images.find(g2dimg); |
| 180 | g2dimg.m_g2d_buffer = nullptr; |
| 181 | |
| 182 | if (iter != m_g2d_images.end()) |
| 183 | m_g2d_images.erase(iter); |
| 184 | } |
| 185 | |
| 186 | |
| 187 | void g2d_display::draw_image(image_handle const p_image_handle, long const p_x1, long const p_y1, long const p_x2, long const p_y2) |