<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to I need help with allegro mouse (I'm not allowed to destroy images)</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/d1fa927e/</link><description>Recent posts to I need help with allegro mouse (I'm not allowed to destroy images)</description><atom:link href="https://sourceforge.net/p/orwelldevcpp/forums/general/thread/d1fa927e/feed.rss" rel="self"/><language>en</language><lastBuildDate>Sun, 20 Aug 2023 16:08:11 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/orwelldevcpp/forums/general/thread/d1fa927e/feed.rss" rel="self" type="application/rss+xml"/><item><title>I need help with allegro mouse (I'm not allowed to destroy images)</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/d1fa927e/?limit=25#1cc9</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Thank you so much for helping with this question!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">jurinilson</dc:creator><pubDate>Sun, 20 Aug 2023 16:08:11 -0000</pubDate><guid>https://sourceforge.net12c0fad81ed2b84fc2662529e624d3592143cde6</guid></item><item><title>I need help with allegro mouse (I'm not allowed to destroy images)</title><link>https://sourceforge.net/p/orwelldevcpp/forums/general/thread/d1fa927e/?limit=25#a908</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;It seems that the &lt;a class="" href="https://tech-stack.com/blog/what-is-an-api/" rel="nofollow"&gt;API&lt;/a&gt; you are using has a restriction on destroying a bitmap that has a mouse cursor shown on it. This restriction is likely in place to prevent potential issues or crashes when destroying a bitmap that is actively being used by the mouse cursor.&lt;/p&gt;
&lt;p&gt;To work around this problem, you can consider the following approaches:&lt;/p&gt;
&lt;p&gt;Hide the mouse cursor: Before destroying the bitmap, hide the mouse cursor using the appropriate function provided by the library. This ensures that the bitmap is no longer associated with the cursor, allowing you to destroy it without violating the restriction.&lt;/p&gt;
&lt;p&gt;Detach the bitmap from the cursor: If you need to keep the mouse cursor visible while removing the bitmap, you can detach the bitmap from the cursor before destroying it. Check the library documentation for any functions that allow you to detach or release a bitmap from the cursor.&lt;/p&gt;
&lt;p&gt;Create a separate layer: Instead of directly manipulating the bitmap that contains the card, you can create a separate layer or buffer specifically for the mouse cursor. This way, when you want to destroy the card, you only need to destroy the bitmap associated with the card itself, while the mouse cursor remains unaffected.&lt;/p&gt;
&lt;p&gt;Contact the library's support: If none of the above approaches work or if you need more specific guidance, it's recommended to reach out to the support or community associated with the library you are using. They will have a better understanding of the library's functionality and may provide additional insights or workarounds.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">orwelldevcpp</dc:creator><pubDate>Fri, 23 Jun 2023 10:18:51 -0000</pubDate><guid>https://sourceforge.netf8cb0c2131ba0ca1beb1a0f346cdd970d9d82548</guid></item></channel></rss>