Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F126835
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
2 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/util/sdl/bitmap.cpp b/util/sdl/bitmap.cpp
index deddfe5e..ce70ff0a 100644
--- a/util/sdl/bitmap.cpp
+++ b/util/sdl/bitmap.cpp
@@ -1,85 +1,112 @@
#include "../bitmap.h"
#include <SDL.h>
static const int FULLSCREEN = 0;
/* bits per pixel */
static int SCREEN_DEPTH = 16;
static SDL_Surface * screen;
Bitmap * Bitmap::Screen = NULL;
static Bitmap * Scaler = NULL;
static Bitmap * Buffer = NULL;
Bitmap::Bitmap(){
}
+Bitmap::Bitmap( int x, int y ){
+}
+
+Bitmap::Bitmap( const char * load_file ){
+}
+
+Bitmap::Bitmap( const std::string & load_file ){
+}
+
+Bitmap::Bitmap( const char * load_file, int sx, int sy ){
+}
+
+Bitmap::Bitmap( const char * load_file, int sx, int sy, double accuracy ){
+}
+
+Bitmap::Bitmap( const Bitmap & copy, bool deep_copy){
+}
+
+Bitmap::Bitmap( const Bitmap & copy, int sx, int sy ){
+}
+
+Bitmap::Bitmap( const Bitmap & copy, int sx, int sy, double accuracy ){
+}
+
+Bitmap::Bitmap( const Bitmap & copy, int x, int y, int width, int height ){
+}
+
int Bitmap::getWidth() const {
return 0;
}
int Bitmap::getHeight() const {
return 0;
}
int Bitmap::getRed(int c){
return 0;
}
int Bitmap::getBlue(int c){
return 0;
}
int Bitmap::getGreen(int c){
return 0;
}
int Bitmap::makeColor(int red, int blue, int green){
return 0;
}
int Bitmap::setGraphicsMode(int mode, int width, int height){
switch (mode){
case FULLSCREEN : {
screen = SDL_SetVideoMode(width, height, SCREEN_DEPTH, SDL_HWSURFACE);
if (!screen){
return 1;
}
break;
}
}
if (SCALE_X == 0){
SCALE_X = width;
}
if (SCALE_Y == 0){
SCALE_Y = height;
}
if ( Screen != NULL ){
delete Screen;
Screen = NULL;
}
if ( Scaler != NULL ){
delete Scaler;
Scaler = NULL;
}
if ( Buffer != NULL ){
delete Buffer;
Buffer = NULL;
}
if (width != 0 && height != 0){
Screen = new Bitmap(screen);
if ( width != 0 && height != 0 && (width != SCALE_X || height != SCALE_Y) ){
Scaler = new Bitmap(width, height);
Buffer = new Bitmap(SCALE_X, SCALE_Y);
}
}
return 0;
}
int Bitmap::setGfxModeFullscreen(int x, int y){
return setGraphicsMode(FULLSCREEN, x, y);
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Jun 11, 1:13 PM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
69191
Default Alt Text
(2 KB)
Attached To
Mode
R75 R-Tech1
Attached
Detach File
Event Timeline