# Odd graphics bug

**URL:** <https://forum.xojo.com/t/odd-graphics-bug/79429>\
**Category:** Windows\
**Created:** [February 29, 2024, 9:56am UTC](https://forum.xojo.com/t/odd-graphics-bug/79429 "2024-02-29T09:56:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeff\_Tullin](https://forum.xojo.com/user_avatar/forum.xojo.com/jeff_tullin/32/693_2.png) [@Jeff\_Tullin](https://forum.xojo.com/u/Jeff_Tullin)\
**Post date:** [February 29, 2024, 9:56am UTC](https://forum.xojo.com/t/odd-graphics-bug/79429/1 "2024-02-29T09:56:26Z")

</div>

In older versions of Xojo, I found that RGBSurface.pixel on Windows builds to be unreliable… it would give wrong colors or simply not work.  
I recently adopted the 2023 version in order to take advantage of the speed increases.  
Suddenly I got a new bug - it went the other way.

Using graphics.pixel(x,y) to set a pixel color has stopped working,  
but RGBSurface.Pixel(x,y) **does** on the same image.

Very strange, just putting it out here in case anyone else suffers from the same issue.
