Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 153891 Details for
Bug 235636
Review Request: pipepanic - A pipe connecting game
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
PATCH: set window title and icon
pipepanic-0.1.3-window-title.patch (text/plain), 1.02 KB, created by
Hans de Goede
on 2007-05-01 20:32:09 UTC
(
hide
)
Description:
PATCH: set window title and icon
Filename:
MIME Type:
Creator:
Hans de Goede
Created:
2007-05-01 20:32:09 UTC
Size:
1.02 KB
patch
obsolete
>diff -ur pipepanic-0.1.3-source/main.c pipepanic-0.1.3-source.new/main.c >--- pipepanic-0.1.3-source/main.c 2006-05-16 22:11:29.000000000 +0200 >+++ pipepanic-0.1.3-source.new/main.c 2007-05-01 22:04:36.000000000 +0200 >@@ -101,6 +101,7 @@ > #endif > int main(int argc, char *argv[]) { > int count, count2; >+ SDL_Surface *icon; > > /* Initialise the highscoreboard array because there may not yet > be a saved highscore[board]/rc file */ >@@ -178,6 +179,13 @@ > printf("Setting video mode %ix%i\n", xres, yres); > #endif > >+ icon = SDL_LoadBMP("/usr/share/pipepanic/icon.bmp"); >+ if (icon) { >+ SDL_SetColorKey(icon, SDL_SRCCOLORKEY, >+ SDL_MapRGB(icon->format, 255, 0, 255)); >+ SDL_WM_SetIcon(icon, NULL); >+ } >+ > /* Set SDL video mode */ > screen = SDL_SetVideoMode(xres, yres, 16, SDL_DOUBLEBUF | SDL_HWSURFACE | SDL_ANYFORMAT | sdl_fullscreen); > if(screen == NULL) { >@@ -185,6 +193,8 @@ > exit(1); > } > >+ SDL_WM_SetCaption("Pipepanic version " VERSION, "Pipepanic"); >+ > #ifdef DEBUG > printf ("Loading bitmaps\n"); > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 235636
: 153891