Home | Reviews | GUIpedia | Forum | Fun500
aguma | Help! Little dotsies on my screen!Well in dosbox it shows little dots on the top of my screen in my program - 320x240 with an image i display on top. do you know why there's the dots there? is it dosbox's fault, fb's fault, or my fault? Anyway, here's the source code: [file name=source.zip size=8552]http://theguiblog.com/images/fbfiles/files/source.zip[/file]
EDIT: Never mind, I just had to clear the screen after I set the resolution. So it was freebasic's AND Dosbox's fault, and a little bit mine! lol | 2009-03-11 | 6:18 PM |
pharoah | Re:Help! Little dotsies on my screen!I can't run it right now. but it looks like you have written your window manager in your scripting language. Am I right? That would be pretty cool :). | 2009-03-11 | 6:23 PM |
aguma | Re:Help! Little dotsies on my screen!Well not really 'window manager' (I couldn't think of a better name for it); it's more of the actual GUI. I like making the kernel as general as possible and then coding everything else in my scripting language. So nothing was actually called directly by my kernel; it's all from the script. I don't know why I like doing that, it just feels weird if I don't. | 2009-03-11 | 7:02 PM |
pharoah | Re:Help! Little dotsies on my screen!I think it's interesting how you store your strings as a series of integers + descriptor. I'm working out my own approach to different data types myself. Currently my ideas are:
- Use only strings and store everything in them
- Use only bytes or integers
- Use different stacks with different functions (IE pushchar, pushint, pushfloat)
- Store them in one stack but have different types
- Use integers and pointers to strings
Currently I'm going the only strings route with Project Cobalt because speed isn't a big issue. | 2009-03-11 | 8:57 PM |
ksr | Re:Help! Little dotsies on my screen!TNT uses only strings (iirc javascript is a bit like this?). It might be a bit slower but the code just looks a lot neater. | 2009-03-12 | 1:09 PM |
pharoah | Re:Help! Little dotsies on my screen!Yeah that's my opinion, too. One thing, though, is that it will be necessary for me to add some kinds of functions to parse regular binary data types in order to read image files and things like that. | 2009-03-12 | 3:24 PM |
Other
2021 Brandon Cornell