GeneralThis forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Here's what I said: Even though running X in kernel space won't work, I want to make a step forward in the position of Linux's GUI (aka kernelspace or userspace) by placing it right in the middle - that is, right after the kernel is loaded.
Or an even better idea: Smeeze, would it be okay if I helped contribute a GUI to your kernel's team? Maybe I will define a window geometry struct in your 'nodos.cpp' file for other members of the team to build upon.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094
Rep:
Quote:
Originally Posted by Kenny_Strawn
Here's what I said: Even though running X in kernel space won't work, I want to make a step forward in the position of Linux's GUI (aka kernelspace or userspace) by placing it right in the middle - that is, right after the kernel is loaded.
Or an even better idea: Smeeze, would it be okay if I helped contribute a GUI to your kernel's team? Maybe I will define a window geometry struct in your 'nodos.cpp' file for other members of the team to build upon.
Smeeze, I indented nodos.cpp properly, plus I added the following function and struct:
Code:
struct prism {
int Left; //The point with the
int Top; //coordinates on the top
int Rear; //left rear
int Right; //The point with the
int Bottom; //coordinates on the bottom
int Front; //right front
};
float rgba (unsigned Red, unsigned Green, unsigned Blue, float Alpha) {
Red < 256;
Green < 256;
Blue < 256;
Red * Green * Blue;
int aRed = Alpha*(Red);
int aGreen = Alpha*(Green);
int aBlue = Alpha*(Blue);
int RedEq = (1 - Alpha)*Red + Alpha*(aRed);
int GreenEq = (1 - Alpha)*Green + Alpha*(aGreen);
int BlueEq = (1 - Alpha)*Blue + Alpha*(aBlue);
};
The struct is for the basic UI geometry (e.g. desktop area, window area, object area), and the function is for the color scheme, and then some. The function handles colors and transparency (the "Alpha" value) in one map.
Last edited by Kenny_Strawn; 04-12-2010 at 07:54 PM.
Distribution: Damn Small Linux, KateOs, M$ Ickdows Vista, My own OS
Posts: 2,094
Rep:
Code:
nodos_.cpp:
Warning nodos_.cpp 54: Code has no effect in function rgba(unsigned int,unsigned
int,unsigned int,float)
Warning nodos_.cpp 55: Code has no effect in function rgba(unsigned int,unsigned
int,unsigned int,float)
Warning nodos_.cpp 56: Code has no effect in function rgba(unsigned int,unsigned
int,unsigned int,float)
Warning nodos_.cpp 67: Function should return a value in function rgba(unsigned
int,unsigned int,unsigned int,float)
Warning nodos_.cpp 67: 'BlueEq' is assigned a value that is never used in functi
on rgba(unsigned int,unsigned int,unsigned int,float)
Warning nodos_.cpp 67: 'GreenEq' is assigned a value that is never used in funct
ion rgba(unsigned int,unsigned int,unsigned int,float)
Warning nodos_.cpp 67: 'RedEq' is assigned a value that is never used in functio
n rgba(unsigned int,unsigned int,unsigned int,float)
Error nodos_.cpp 98: For statement missing ; in function strncpy(char far*,char
far*,int)
Error nodos_.cpp 102: Declaration syntax error in function strncpy(char far*,cha
r far*,int)
Error nodos_.cpp 236: Declaration syntax error in function strncpy(char far*,cha
r far*,int)
Error C:\TC\TCC\sprintf.c 5: Declaration syntax error in function strncpy(char f
ar*,char far*,int)
Error nodos_.cpp 264: Declaration syntax error in function strncpy(char far*,cha
r far*,int)
Error nodos_.cpp 474: Declaration syntax error in function strncpy(char far*,cha
r far*,int)
Error nodos_.cpp 652: Declaration syntax error in function strncpy(char far*,cha
r far*,int)
Error nodos_.cpp 880: Declaration missing ; in function strncpy(char far*,char f
ar*,int)
Error nodos_.cpp 880: Compound statement missing } in function strncpy(char far*
,char far*,int)
Warning nodos_.cpp 880: Function should return a value in function strncpy(char
far*,char far*,int)
Warning nodos_.cpp 880: 'memory' is assigned a value that is never used in funct
ion strncpy(char far*,char far*,int)
Warning nodos_.cpp 880: 'digits' is assigned a value that is never used in funct
ion strncpy(char far*,char far*,int)
Warning nodos_.cpp 880: Parameter 'dest' is never used in function strncpy(char
far*,char far*,int)
*** 9 errors in Compile ***
NODOS.cpp:99:7: error: invalid suffix "h" on integer constant
NODOS.cpp:117:11: error: invalid suffix "h" on integer constant
NODOS.cpp:122:11: error: invalid suffix "h" on integer constant
NODOS.cpp:245:23: error: sprintf.c: No such file or directory
NODOS.cpp:303:11: error: invalid suffix "h" on integer constant
NODOS.cpp:317:11: error: invalid suffix "h" on integer constant
Compilation failed.
NODOS.cpp:24: error: expected initializer before ‘*’ token
NODOS.cpp: In function ‘int rand()’:
NODOS.cpp:38: error: lvalue required as left operand of assignment
NODOS.cpp:39: error: lvalue required as left operand of assignment
NODOS.cpp:40: warning: value computed is not used
NODOS.cpp: At global scope:
NODOS.cpp:55: error: expected ‘;’ before ‘str’
NODOS.cpp:66: error: expected ‘;’ before ‘*’ token
NODOS.cpp:75: error: expected initializer before ‘strlen’
NODOS.cpp:68: warning: ‘files’ defined but not used
NODOS.cpp:69: warning: ‘nf’ defined but not used
NODOS.cpp:73: warning: ‘memory_blocks’ defined but not used
I think my favorite distro is AntiX. It's not as "elegant" as some other distros I like, but I love it all the same. It's easy to install, the people at the forum are supportive and helpful, and it makes my Pentium III with 256MB of RAM run like a gazelle! It's helped me to realize that new isn't always better. Rather than throwing away an otherwise perfectly usable desktop or laptop, AntiX is wonderful for staying lightweight and doing just about anything.
AntiX also has a whole plethera of applications that I haven't seen in other distros. It's helped me to learn how to get the job done without lots of resources that aren't necessary. Fun!! --And various desktop sessions available!
Another lightweight distro I like is Bodhi Linux. A bit more "elegant," and very able to perform, although not as fast as AntiX.
Asturix is very elegant, but high on resources.
PCLinxOS, Mageia and Xubuntu are all well-thought-out, as well.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.