Thread: color issues

  1. #1
    Registered User
    Join Date
    Aug 2006

    color issues

    I wrote a mandelbrot set program a while back and just lately I revisited it. it compiles fine on both windows xp and debian lenny and runs on both ..

    however I only get color on xp .. black and white for lenny ..

    so I copied one of my screenshots over from xp to lenny and it was in color ..

    I copied one of my screenshots from lenny over just to check and it was in black and white ..

    I went to #debian on freenode and had a chat and one of the guys suggested that it was a software problem ..

    personally I dont know but any help or pointers in the right direction appreciated

    thanks al.

    ps not sure how to attach a file but the program is at C | /* draw mandelbrot set and res - Anonymous - J7LVtP46 -

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    That's odd, seems to work fine for me. On Arch Linux...
    zac@neux:~ (0) $ uname -a
    Linux neux 2.6.31-ARCH #1 SMP PREEMPT Tue Nov 10 19:48:17 CET 2009 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+ AuthenticAMD GNU/Linux
    And there's nothing that stuck out as wrong in the code. Other than the abuse of global variables

  3. #3
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    segmentation fault
    It was purple and black for me (FC10-64). I was going to take a screen shot, but the second time I clicked the mouse:

    1 ) mousebutton_event z = 1
    374 250 0 0
    2 ) mousebutton_event z = 2
    374 250 374 250
    s = -0.720643
    t = 0.000000
    u = -0.720643
    v = 0.000000
    ximage = 0.000000
    yimage = 0.000000
    xoff = 0.720643
    yoff 0.000000
    Floating point exception

    I would work in openGL with SDL for 2D stuff -- it would be quite a bit faster. I think even the SDL developers recommend this.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  4. #4
    Registered User
    Join Date
    Aug 2006
    thanks for the replies ..

    I know I had it running correctly before on linux .. it does work ok on xp ..

    the program is designed to work left high click to low right click .. not sure if thats what caused it to crash ..

Popular pages Recent additions subscribe to a feed