Ignore:
Timestamp:
Mar 16, 2008, 2:17:43 AM (11 years ago)
Author:
Sam Hocevar
Message:
  • Simplified the window creation arguments. Got rid of a lot of macros and hid stuff in private namespaces.

Inspired by Win32 Abuse changelog for January 28, 2001:

  • Well, in the process of adding changes necessary to

handle recovery from alt-tabbing away from Abuse
(which is why I was updating jwindow::redraw()),
the entire windowing system is getting an overhaul.
It's gonna be sweet when I'm done, though.

  • jwindow::redraw() has been changed to a virtual

function requiring no parameters. This'll make
it much easier to implement special specific-
purpose windows.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/gamma.cpp

    r110 r111  
    130130            gray_pal->find_closest(dr_r, dr_g, dr_b));
    131131
    132         int wl = WINDOW_FRAME_LEFT, wh = WINDOW_FRAME_TOP;
    133132        int sh = wm->font()->height() + 35;
    134         button *but = new button(wl + 5, wh + 5 + sh * 3, ID_GAMMA_OK, cash.img(ok_button),
    135             new info_field(wl + 35, wh + 10 + sh * 3, ID_NULL, lang_string("gamma_msg"), 0));
    136 
    137         gray_picker *gp = new gray_picker(wl + 2, wh + 5 + sh * 1, ID_GREEN_PICKER, 0, dg / 4, but);
     133        button *but = new button(5, 5 + sh * 3, ID_GAMMA_OK, cash.img(ok_button),
     134            new info_field(35, 10 + sh * 3, ID_NULL, lang_string("gamma_msg"), 0));
     135
     136        gray_picker *gp = new gray_picker(2, 5 + sh, ID_GREEN_PICKER, 0, dg / 4, but);
    138137        gp->set_pos(dg / 4);
    139138
Note: See TracChangeset for help on using the changeset viewer.