mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
Delete extra whitespace at the end of line, which annoys quilt
git-svn-id: svn://coreboot.org/openbios/openbios-devel@284 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* tag: qt plugin framebuffer class
|
||||
*
|
||||
*
|
||||
* Copyright (C) 2003 Stefan Reinauer
|
||||
*
|
||||
* See the file "COPYING" for further information about
|
||||
@@ -15,22 +15,22 @@ static const int sizex=640;
|
||||
static const int sizey=480;
|
||||
static const int depth=8;
|
||||
|
||||
static unsigned char color[256][3]={
|
||||
{ 0x00, 0x00, 0x00 },
|
||||
{ 0x00, 0x00, 0xaa },
|
||||
{ 0x00, 0xaa, 0x00 },
|
||||
{ 0x00, 0xaa, 0xaa },
|
||||
{ 0xaa, 0x00, 0x00 },
|
||||
{ 0xaa, 0x00, 0xaa },
|
||||
{ 0xaa, 0x55, 0x00 },
|
||||
{ 0xaa, 0xaa, 0xaa },
|
||||
{ 0x55, 0x55, 0x55 },
|
||||
{ 0x55, 0x55, 0xff },
|
||||
{ 0x55, 0xff, 0x55 },
|
||||
{ 0x55, 0xff, 0xff },
|
||||
{ 0xff, 0x55, 0x55 },
|
||||
{ 0xff, 0x55, 0xff },
|
||||
{ 0xff, 0xff, 0x55 },
|
||||
static unsigned char color[256][3]={
|
||||
{ 0x00, 0x00, 0x00 },
|
||||
{ 0x00, 0x00, 0xaa },
|
||||
{ 0x00, 0xaa, 0x00 },
|
||||
{ 0x00, 0xaa, 0xaa },
|
||||
{ 0xaa, 0x00, 0x00 },
|
||||
{ 0xaa, 0x00, 0xaa },
|
||||
{ 0xaa, 0x55, 0x00 },
|
||||
{ 0xaa, 0xaa, 0xaa },
|
||||
{ 0x55, 0x55, 0x55 },
|
||||
{ 0x55, 0x55, 0xff },
|
||||
{ 0x55, 0xff, 0x55 },
|
||||
{ 0x55, 0xff, 0xff },
|
||||
{ 0xff, 0x55, 0x55 },
|
||||
{ 0xff, 0x55, 0xff },
|
||||
{ 0xff, 0xff, 0x55 },
|
||||
{ 0xff, 0xff, 0xff },
|
||||
};
|
||||
|
||||
@@ -43,20 +43,20 @@ FrameBufferWidget::FrameBufferWidget(QWidget *parent, const char * name)
|
||||
QPopupMenu *file = new QPopupMenu (this);
|
||||
|
||||
file->insertItem( "E&xit", this, SLOT(quit()), CTRL+Key_Q );
|
||||
|
||||
|
||||
QPopupMenu *help = new QPopupMenu( this );
|
||||
help->insertItem("&About OpenBIOS", this, SLOT(about()), CTRL+Key_H );
|
||||
help->insertItem( "About &Qt", this, SLOT(aboutQt()) );
|
||||
|
||||
|
||||
menu = new QMenuBar( this );
|
||||
Q_CHECK_PTR( menu );
|
||||
menu->insertItem( "&File", file );
|
||||
menu->insertSeparator();
|
||||
menu->insertItem( "&Help", help );
|
||||
menu->setSeparator( QMenuBar::InWindowsStyle );
|
||||
|
||||
|
||||
setFixedSize(sizex,sizey+menu->heightForWidth(sizex));
|
||||
|
||||
|
||||
buffer.create(sizex, sizey, depth, 256);
|
||||
|
||||
for (int i=16; i < 256; i++) {
|
||||
@@ -64,16 +64,16 @@ FrameBufferWidget::FrameBufferWidget(QWidget *parent, const char * name)
|
||||
color[i][1]=i;
|
||||
color[i][2]=i;
|
||||
}
|
||||
|
||||
|
||||
for (int i=0; i< 256; i++)
|
||||
buffer.setColor(i, qRgb(color[i][0], color[i][1], color[i][2]));
|
||||
|
||||
|
||||
buffer.fill( 0 );
|
||||
|
||||
|
||||
updatetimer=new QTimer(this);
|
||||
connect( updatetimer, SIGNAL(timeout()), this, SLOT(update()) );
|
||||
updatetimer->start(200,FALSE);
|
||||
|
||||
|
||||
setMouseTracking( TRUE );
|
||||
}
|
||||
|
||||
@@ -98,10 +98,10 @@ void FrameBufferWidget::about()
|
||||
}
|
||||
|
||||
void FrameBufferWidget::aboutQt()
|
||||
{
|
||||
{
|
||||
QMessageBox::aboutQt( this, "OpenBIOS" );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void FrameBufferWidget::quit()
|
||||
{
|
||||
extern volatile int gui_running;
|
||||
|
||||
Reference in New Issue
Block a user