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/loadgame.cpp

    r106 r111  
    5858{
    5959  ico_button *buts[MAX_SAVE_GAMES];
    60   int y=WINDOW_FRAME_TOP,i;
     60  int y = 0, i;
    6161  int ih=cash.img(save_buts[0])->height();
    6262  int x=0;
     
    6464  {
    6565    if (thumb_nails) { while (!thumb_nails[x]) x++; }
    66     buts[i]=new ico_button(WINDOW_FRAME_LEFT,y,ID_LOAD_GAME_NUMBER+x,
     66    buts[i]=new ico_button(0, y, ID_LOAD_GAME_NUMBER + x,
    6767                           save_buts[x*3+0],save_buts[x*3+0],save_buts[x*3+1],save_buts[x*3+2],NULL);
    6868    buts[i]->set_act_id(ID_LOAD_GAME_PREVIEW+x);
     
    7373    buts[i]->next=buts[i+1];
    7474
    75   return wm->new_window(mx,yres/2-(WINDOW_FRAME_TOP+ih*5)/2,-1,-1,buts[0]);
     75  return wm->new_window(mx,yres/2-(jwindow::top_border()+ih*5)/2,-1,-1,buts[0]);
    7676}
    7777
Note: See TracChangeset for help on using the changeset viewer.