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:
Blue Swirl
2008-12-11 20:30:53 +00:00
parent 3038a07be7
commit 58ca864765
200 changed files with 1661 additions and 1661 deletions

View File

@@ -1,5 +1,5 @@
/* tag: pci config space dump for qt plugin's pci device.
*
*
* Copyright (C) 2003 Stefan Reinauer
*
* See the file "COPYING" for further information about

View File

@@ -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;

View File

@@ -1,5 +1,5 @@
/* tag: qt plugin framebuffer class description
*
*
* Copyright (C) 2003 Stefan Reinauer
*
* See the file "COPYING" for further information about
@@ -24,7 +24,7 @@ class FrameBufferWidget : public QWidget {
public:
FrameBufferWidget(QWidget *parent=0, const char *name=0);
unsigned char *getFrameBuffer(void);
public slots:
void quit();
void about();

View File

@@ -1,5 +1,5 @@
/* tag: openbios qt plugin skeleton
*
*
* Copyright (C) 2003 Stefan Reinauer
*
* See the file "COPYING" for further information about
@@ -30,19 +30,19 @@ typedef struct {
void *gui_thread(void *ptr)
{
threaddata *td=(threaddata *)ptr;
QApplication a(td->argc, td->argv);
FrameBufferWidget w;
a.setMainWidget(&w);
w.show();
fb=w.getFrameBuffer();
gui_running=-1;
a.exec();
gui_running=0;
return 0;
}
@@ -58,7 +58,7 @@ int plugin_qt_init(void)
printf("Initializing \"framebuffer\" plugin...");
#endif
pthread_create(&mythread, NULL, gui_thread, &mytd);
while (!fb)
while (!fb)
usleep(20);
/* now we have the framebuffer start address.
@@ -80,14 +80,14 @@ int plugin_qt_init(void)
*(u32 *)(pci_config_space+0x34)=0;
#endif
*(u32 *)(pci_config_space+0x30)=(u32)((unsigned long)qt_fcode&0xffffffff);
/* FIXME: we need to put the fcode image for this
* device to the rom resource, once it exists
*/
/* register pci device to be available to beginagain */
pci_register_device(0, 2, 0, pci_config_space);
#ifdef DEBUG
printf("done.\n");
#endif