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

    r106 r111  
    1313#include "dev.hpp"
    1414
     15chat_console *chat = NULL;
     16
    1517chat_console::chat_console(JCFont *font, int width, int height) :
    1618  console(font,width,height<4 ? 4 : height,symbol_str("CHAT"))
    1719{
    18   clear();
    19   cx=0;
    20   cy=h-1;
    21   lastx=xres/2-screen_w()/2;
    22   lasty=yres-screen_h()-WINDOW_FRAME_TOP-WINDOW_FRAME_BOTTOM;
     20    hide();
     21    clear();
     22    cx = 0;
     23    cy = h - 1;
     24    lastx = xres / 2 - screen_w() / 2;
     25    lasty = yres - h;
    2326}
    24 
    25 chat_console *chat=NULL;
    2627
    2728void chat_console::clear()
Note: See TracChangeset for help on using the changeset viewer.