On Mon, 17 Feb 2025 16:07:56 -0500 Zinful <zinfulperso...@gmail.com> said:
> It's not that I don't like it, but the mouse issue has been a thing for a > few weeks and Im pretty over the mouse lol. The rest of the project so far > is honestly going smoothly. Executing programs, resource management, > displaying text/erasing it properly and y'know whatever else is pretty > relaxed. > Debugging those is also streamlined since the code is pretty organized. But > this mouse has been an absolute nightmare lmao especially in comparison to > the rest. But thank you for your response! I'm going to look into your > suggestion and chances are pretty high I'm just gonna commit to it. Have a > good rest of your week! Advice - don't try and just bolt on a mouse with a hack. reality is to do a mouse, you're doing sprites/overlays and/or compositing (to do it right) so instead of bolting it on with a hack, bite the bullet and work out how to do some proper compositing of images (sprites) off-screen with also retained off-screen content of the screen then transfer any changes on to the screen when done. if you were not using /dev/fb ... i'd even start suggesting you read up about double (and triple) buffering and move to zero-copy swaps... but one step at a time. figure out the whole composition of sprites and content first. :) > On Mon, Feb 17, 2025, 4:49 AM Carsten Haitzler <ras...@rasterman.com> wrote: > > > On Sat, 15 Feb 2025 21:41:37 -0500 Zinful <zinfulperso...@gmail.com> said: > > > > > I'm working on a project currently for college making a shitty GUI. I'm > > > having trouble getting the proper color values for around the mouse so it > > > overwrites drawn pixels on the screen with black. I was wondering if > > anyone > > > could peek at my code and point to where I'm going wrong > > > > You seem to not like the project. :) > > > > I suggest you stop worrying about how to draw the mouse and instead work > > out > > how to fill in the fb from a backing buffer where you composite an existing > > set of content and a mouse sprite. I suggest you google on what sprites > > are and > > how to draw your own in software on top of an existing array of pixels. > > > > -- > > ------------- Codito, ergo sum - "I code, therefore I am" -------------- > > Carsten Haitzler - ras...@rasterman.com > > > > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - ras...@rasterman.com