Show newer

@blackle it just has fn-arrow keys
tap once to move your mouse in that direction a bit
(holding doesn't make it repeat, you have to tap it every time to move it)

see the fun part is theoretically i can just blit a image to that sdl window by running memset and having it fill the pixel space with a very long number that represents the image

@clarkenciel@cybre.space your @ thing broke on my end for some reason (it's just a white @ and i didnt get a notifi)

but also thank!!!

python script that opens a SDL window which fades from black to white and then closes (using only NATIVE LIBRARIES) 

from ctypes import*
from struct import*
from time import*
S=CDLL('libSDL-1.2.so.0')
u=S.SDL_SetVideoMode(640,480,32,0)
r=unpack('iPiihP',string_at(u,40))
f=S.SDL_Flip
for a in range(0,0xff):
memset(r[5],a,r[4]*r[3])
f(u)
sleep(0.01)

S.SDL_Quit()

Show thread

HAHA YES I GOT SURFACE FLIPPING WORKING
I FEEL THE MAGIC

Show thread

im actually pretty proud of this because if you extend the length of that string_at, what comes after the second "xxh" in that unpack is a pointer to the memory where the pixels for that window are stored, meaning i'll be able to just grab the sdl window's contents and play with them instead of having to mess with "rectangles" and stuff

Show thread

@masklayer replying to this post so my reply is like a lil bookmark

@Elizafox it's literally a combopasta at this point
navy seal copypasta, hollywood hills, nothin personnel kid, and garfield x jon slash fic

@Elizafox [strong language]
paste.ee/p/aipv6
i've had this saved in my homefolder for like, months, and i dont know its source at this point
a gift from the cosmos perhaps

@wxcafe@social.wxcafe.net /shrug
i think the issues is curl is a "compliant http client" where as i can say "eff the cops"

@wxcafe@social.wxcafe.net try doing a "curl -v" with a /../ url
it'll rebuild the url like browsers do

Show older
Computer Fairies

Computer Fairies is a Mastodon instance that aims to be as queer, friendly and furry as possible. We welcome all kinds of computer fairies!