Ignore:
Timestamp:
Mar 16, 2008, 2:17:43 AM (12 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/net/gserver.cpp

    r106 r111  
    6969      char msg[100];
    7070      sprintf(msg,symbol_str("min_wait"),main_net_cfg->min_players-total_players());
    71       stat=wm->new_window(100,50,-1,-1,new info_field(WINDOW_FRAME_LEFT,WINDOW_FRAME_TOP,ID_NULL,msg,
    72                                        new button(WINDOW_FRAME_LEFT,WINDOW_FRAME_TOP+wm->font()->height()*2,
    73                                                   ID_CANCEL,symbol_str("cancel_button"),NULL)  ));
     71      stat=wm->new_window(100,50,-1,-1,new info_field(0, 0, ID_NULL,msg,
     72                                       new button(0, wm->font()->height()*2, ID_CANCEL,symbol_str("cancel_button"),NULL)  ));
    7473      wm->flush_screen();
    7574      last_count=total_players();
Note: See TracChangeset for help on using the changeset viewer.