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/imlib/guistat.cpp

    r107 r111  
    9696        if (p) wy=p->stat_win->y+p->stat_win->y2()+5;
    9797
    98         int mx=WINDOW_FRAME_LEFT,my=WINDOW_FRAME_TOP;
    99         first->stat_win=wm->new_window(wx,wy,len3, h1*2+h2,NULL,"status");
    100         wm->font()->put_string(first->stat_win->screen,mx+1,my+1,first->name,wm->black());
    101         wm->font()->put_string(first->stat_win->screen,mx,my,first->name,wm->bright_color());
     98        int mx = first->stat_win->x1() + 1;
     99        int my = first->stat_win->y1() + wm->font()->height() / 2;
     100        first->stat_win=wm->new_window(wx, wy, len3, h1*2+h2, NULL, "status");
     101        wm->font()->put_string(first->stat_win->screen, mx, my, first->name, wm->black());
     102        wm->font()->put_string(first->stat_win->screen, mx, my, first->name, wm->bright_color());
    102103        if (first->show)
    103           first->show->draw(first->stat_win->screen,(first->stat_win->x2()-first->stat_win->x1())/2-
    104                             first->show->width()/2,my+h1,NULL);
     104          first->show->draw(first->stat_win->screen, (first->stat_win->x2()-first->stat_win->x1())/2-
     105                            first->show->width()/2, my+h1, NULL);
    105106
    106107        draw_bar(first,percentage);
Note: See TracChangeset for help on using the changeset viewer.