Programming :: Selecting VGA Planes Causes Existing Pixels To Change Colors?
Oct 28, 2009
using the code
Code:
void setplane(unsigned char mask){
inportb(0x3DA); //Reset the VGA flip/flop
unsigned char c=inportb(0x3C0); /*the VGA does not like you not saving values*/
[code]....
does not work, for example if setplane(1); will change all pixels plotted to blue - not just the newest. and here is how i plot pixels:
Code:
void ppixel(unsigned x, unsigned y, unsigned char color){
setplane(color);
((char far *)0xA0000000L)[(y*(640/8))+(x/8)]=((1<<7)>>(x%8));
}
View 2 Replies
ADVERTISEMENT
May 19, 2010
I recently installed Ubuntu 10.04 Netbook Remix on my Gateway LT3103u. I noticed shortly into using it that it has a graphics bug every so often. Especially when I change the background image. Everything will change to a warped mix of colors and pixels. Everything is affected. My mouse, the bar at the top of the screen, text and all. My netbook runs on an AMD Athlon 64-bit processor with ATI Radeon X1270 HyperMemory up to 256MB graphics.
So far I have tried reinstalling, and even the 64bit desktop edition which had the same problem. Ive noticed that it freaks out when i scroll too quick, when changing background images, and on certain websites. Then other times its completely random. When it happens it looks similar to these: [URL]
View 4 Replies
View Related
Jan 31, 2011
Now I know that in order to change the colors in your terminal you have to play around with ~/.bashrc But the effects don't stay in place after a change-root is taken affect. It just reverts to black. Is there any way I can change that too in .bashrc?
View 3 Replies
View Related
Aug 3, 2009
I'm trying to get the width of a string in pixels this way:
Display *disp;
int len;
disp = XOpenDisplay(0);
font = XLoadQueryFont(disp, desc );
[code]....
I'm getting negative numbers as the the pixel length, eg -7275
View 3 Replies
View Related
Apr 6, 2010
It's been a while since I did any kind of graphics programming, but I would like to start learning how to do graphics stuff in *nix. I started reading the GTK+ 2.0 Tutorial, but a) I've only been able to write a small "Hello World" program, and that tested my patience, and b) I'm not seeing anything which allows you to plot a pixel directly. Back before I migrated to Linux, I used the Windows GDI SetPixel() function for plotting pixels sequentially (this was for a small fractal generator). Mostly what I'm asking is if there's any kind of equivalent function in *nix graphics APIs? GTK+? Would I have to deal with SDL/OpenGL?
View 3 Replies
View Related
Aug 24, 2009
I want to findout how to paint a line in C without using a line function or OOP. I want to control it by pixels.
View 6 Replies
View Related
Nov 8, 2010
After hours of online searching, I still haven't find a right answer to my question. How can I change the color of the popup menu, the color of the menus that appear when you click on the icons on the right side of the desktop and of the firefox menus.I have a custom theme.
View 2 Replies
View Related
Aug 24, 2015
So far I want to change two things i want to change both the bars to Black and i want the text to be white i tried google nothing...
View 4 Replies
View Related
Feb 23, 2011
I know this is kind of stupid, but is there any way that I can change the color of the top of the desktop cube??
When I booted up from the Live CD before, the tops of the cube were green with a little chameleon. Now, their just cream colored...
View 4 Replies
View Related
May 29, 2010
In 10.04 Lucid my Nautilus scroll bars are white. The scroll bar slider (the icon that can be moved up and down with the cursor to scroll the window) is the exact same shade of white and the slider outline is pale grey. The lack of color contrast makes the slider hard to see. Is there a preference item somewhere that lets me change this color scheme?
I expected to find it in System >> Preferences >> Appearance >> Theme but I don't think there's anything there about the scroll bars. I think my monitor might be more contrasty than most, which is probably exacerbating the problem, but this is what I have to work with. I would rather fix it by changing a system setting than replacing the monitor.
View 4 Replies
View Related
Jan 22, 2011
know how to explain this, but I'll try to the best I can. I installed from wubi, so I don't know if that matters, but here goes.
When I'm using ubuntu, I'm unable to click on any windows/elements outside of my current window, or use the close/minimize/maximize buttons. For example right now, in firefox, I am unable to use either of the taskbars or minimize the window. I can't click any of the icons on the desktop or anything, either, and if a page triggers a popup, I can't do anything with it. The thing is, though, interestingly, unplugging and replugging my USB mouse fixes it until I click on something again. I have no clue if it's a driver issue, a hardware issue (my mouse works fine on windows, though), or just a misconfiguration in the OS somewhere.
View 1 Replies
View Related
Jun 28, 2010
fedora 13, Gnome, with the exception of Kdenlive... I need to change to match my gnome theme... I work in a dark environment so I use a dark theme... nearly impossible to use kdenlive as is...
If I remember correctly there was a utility in KDE to make gnome apps look nice, but can't find anything like that for gnome, can't find kcontrol in safe repos for some reason, maybe I'm looking for the wrong thing
View 5 Replies
View Related
Feb 11, 2011
In Fedora 14, the colors of the grub boot menu were changed. why, previous versions of the grub boot menu were always the same, that black bar on white letters.
Now suddenly in F14, it was changed to a white bar, on white letters, which is hard to see and looks stupid besides. How do I change those colors back to the old way? the black bar on white lettering?
I have been googling for this topic and I don't see anything in the docs listed for it so decided to ask here.
[URL]
ok I tried it, it didn't work, I tried that exact command it gave in the article, and the colors of the grub menu did NOT change!
View 1 Replies
View Related
Jul 21, 2011
I'm using Fedora 15, Gnome Shell. Standard window decoration (Adwaita).
Some applications use one set of colors for drop-down menus; other applications use another set of colors.
Nautilus, e.g., uses a white / bright blue combination. Quodlibet and Firefox both use a greyish blue. see attached screenshots.
Are your Gnome applications also doing this sort of thing in Fedora 15 and Gnome Shell?
View 2 Replies
View Related
Apr 17, 2011
I put
Code:
echo -e 'e[0;34m'
into /etc/profile, but it still doesn't work until I login. I'd like it to work before that, so that all messages (like those displayed on boot up) have these default settings.
View 6 Replies
View Related
May 3, 2010
I need to make a very large (data) web page easy to read. This is also a simple web page and it is called largedata.html Assuming that it contains the data:
Quote:
Step out of the room.
Close the door.
Walk to the elevator.
Press the 1 button.
[code]....
View 6 Replies
View Related
Apr 11, 2011
I have a dataset of around 1000 lines. Out of these 1000 lines I need to pick randomly 160 lines of data and write it to a file. The program is needed to eliminate data bias when I run the program through a reanalysis program. I am thinking I need to use the rand or srand term, but I am having difficulty writing this in perl. I have to write it in perl, because the rest of my scripts for this project are in perl, so consistency is important. The data only consists of one column of the data (YYYYMMDDHHHH).
View 2 Replies
View Related
Nov 5, 2010
How do I change the ugly default orange color for the loading bars and stuff? I know how to change things with the window manager, but that only changes the frames and "min, max, close" buttons. I like everything about the theme I have, and the way the window manager is set, except it uses that ugly orange color when things are loading or downloading. How do I change that part? Can I change only that part by itself?
View 2 Replies
View Related
May 22, 2011
No Matter what I do and change in gnome-tweak-tool, the window title bar won't change to anything else, won't go smaller, even the downloaded themes won't change the bar, and I cant seem to find the needed codes in xml to change them. photo is attached to illustrate the things I need to changeI need to change their size in the first place, and maybe change them to like ambiance or whatever. i've seen many guides on the net, and It still don't find the neeeded solution
View 1 Replies
View Related
Apr 27, 2010
I'm trying to understand how to use colors in Xlib programming. What I think I understand so far is that modern displays use 24 or 32-bit TrueColor. And TrueColor uses three colormaps, one for each primary color, and a single pixel value is composed of three indices.
Now the part i'm confused about is how to get my programs to use a 32-bit TrueColor visual. I thought I could inheret the visual from the root window to get color but it seems no matter what pixel value I use it's either black or white.
I guess my question is, how can I setup my programs so that I can specify a pixel value that is a combination of RGB values to get the color I want?
I come from windows where I simply used RGB(r,g,b) macro to specify colors and never had to worry about depth and colormaps and visuals, so I'm a bit overwhelmed by all of these concepts.
View 1 Replies
View Related
Nov 21, 2010
I got curious during the construction of my program to search for blocks of text that contain certain words, and wanted to print out blocks of text with the words I was searching for, initially, in ALL CAPS and seperated by tabs for easy identification. That got boring, though, so I thought, "Can printf do colors, too?" Yes it can.... Who knew?
[Code],,,
View 8 Replies
View Related
May 27, 2011
However, the option to upgrade to 11.04 has recently become available in the Update Manager.
If I choose to follow this upgrade path, will my existing user settings such as nautilus shortcuts, wallpaper and other personalised settings be changed or reverted to default in any way?
Or will the upgrade execute, and leave everything looking and working exactly the same?
View 1 Replies
View Related
Apr 13, 2011
i inherited 200 tables in a mysql db from each of the 200 table there are table created on php pages
the information is organized pretty much the same (fields) in each of them, so i dont see the point of having so many different tables
i wanna redesign the db, in 4 tables each of this 200 table have a few essential characteristics, like: table name is (version_country_type), ie: v8_de_pro, v8_de_std, v9_uk_pro the fields are: No, Document_file, Document_path, ISBN, Book_Name, Subtitle, Status, Year_issue, Author
i will need to break the table name, and put each part in the new redesigned 4 tables separate fields...
ill have something like:
id, version, country, type, Document_file, Document_path, ISBN, Book_Name, Subtitle, Status, Year_issue, Author
but i have no idea how to do it i know i cant do it in mysql... so ill need to build up a php script which will need to read every table, and drop it in the new format:
table1 called Main: ID, version
table2 called Cat: ID, IDmain, Country
table3 called Sub: ID, IDmain, IDcat, type
table4 called files: ID, IDmain, IDcat, IDsub, Document_file, Document_path, ISBN, Book_Name, Subtitle, Status, Year_issue, Author
View 14 Replies
View Related
Jan 12, 2014
What I would like to do is, with a right click, have the menu give me the option to run srm, which is a "secure remove" program. I picked this one as it requires not only a file name, but some other options. I've run into no support adding things to menus. When I updated one of the Debian versions, I lost the shutdown option from the name menu that used to be there. It was suggested that I right click and pick that option to restore it, but I get the same as the left button on that menu.
View 2 Replies
View Related
Jun 29, 2010
how i will write my own telnet server instead of existing one.please give me the path for telnet.c file in the linux kernel
View 9 Replies
View Related
Mar 19, 2010
i have two scripts called:
"type" & "selecttype".
In "type" i have only the name of the products ex.: product1 & product2. Now, i have to ADD product3 which includes sub categories: productA, productB, productC, productD, productE, productF. so my New type script (menu) looks as below:
1) product1
2) product2
3) product3
and my current selectype looks how can I add the new product3 argument with all other multiple selections (productA, productB, productC, productD, productE, productF) into my current selectype (as below which is set only for product1 & product2), so when a user select: 3) product3 from "type" would get a new menu of all the sub categories, and the script would process the new additional arguments.
Here is the copy of my selectype script:
#!/bin/sh
echo SELECTTYPE
export -n selecttypechoice
if [ "${upgrade}" == "yes" ] ; then
[code]....
View 5 Replies
View Related
Jun 7, 2010
I have a LAMP based web hosting account (BlueHost). I have an existing simple MS Excel application which I would like to make it web based. However I am not sure what tools or features of PHP are out there that will aid me with this task. Here are some details:
1. I don't want to create an entire Excel program online. For that there are plenty of existing applications like Google Docs, MS's own online version of Excel, etc.
2. My current excel file uses some of the following excel functions:
a) SUM
b) Product Sum
c) Conditional Formatting (like changing font color if an amount is below a threshold, etc.)
d) Sorting (Date, Amount)
e) Drop Down Box to select pre-defined values
3. Ability to add/delete/modify a entry (row)
4. I don't care whether the application has the same look-n-feel as MS Excel.
As you can see it is a very simple home grown excel application with few basic mathematical functions. Here are some few thoughts that I have currently in my mind:
i) Just start coding intuitively as you would develop a normal web based application.
ii) Do (i) but use some of the PHP's excel oriented helper functions (COMs?) if there are any
iii) Use completely a different set of tools permitting that they run on LAMP environment.
I could have started with (i) but before making a costly mistake I thought I would get some opinion from the community to see if this is the right approach.
View 1 Replies
View Related
Aug 17, 2010
Here's my linuxquestion I have a bash terminal window opened by next command:
Quote:
gnome-terminal -x bash -c "bash"
Now i need to run different commands or scripts AS ROOT in this terminal window from another terminal. I tried things like
Quote:
sudo echo 123 >/dev/pts/4
The result is 123 in that terminal window, but sudo password is asked in my tab where i entered the command.
View 6 Replies
View Related
Jul 3, 2009
I have a xterm which can have 256 colors. How can I configure the prompt colors and ls output colors to take advantages of the 256 color values?
View 4 Replies
View Related
Oct 30, 2014
I have lately found myself setting up a number of PXE installation servers sufficient that I'm now inspired to automate the process. I've not done this before, but I think I've hit on a method to make it work. I'm using three packages from the archive as a basis: tptpd-hpa, isc-dhcp-server, and nfs-kernel-server. Up to now I've been installing these with APT, then modifying their configs (or creating same as necessary) and then copying my install files (pxelinux.0 and friends, with Debian Wheezy netinst and Xubuntu 14.04 menu options) into /srv/tftp. It strikes me that, rather than letting these packages' postinst scripts do a bunch of stuff that I will subsequently undo, I should modify the scripts in situ to do what I want. I don't feel that I adequately understand how these things work, so I'm asking for advice.
So far I've hit upon two different methods.
I can use apt-get download to fetch the packages, and then dpkg-deb --control to pull out the control files. Then I can edit the postinst scripts as necessary and dpkg-deb --build a new package from the results of dpkg-deb --fsys-tarfile plus the altered postinst scripts. I have gotten as far as extracting the control files from a package, but I'm unsure that the dpkg-deb --build step will work as I expect. Alternately I can do apt-get source [packages], edit the postinst scripts in the source, and then build the packages as usual. I'm more confident that this will work, but I'd rather provide the former method if possible. Is there another method of which I've not thought? Is this the way metapackages are made and configured?
View 2 Replies
View Related