Commit cda943c6 authored by Sergio Costas's avatar Sergio Costas

Removed more warnings

parent 1f724ad9
......@@ -18,7 +18,7 @@ OSD::OSD() {
void OSD::set_message(string text, uint32_t ms) {
this->text = text;
this->lines = 1;
for (int loop = 0; loop < text.length(); loop++) {
for (unsigned int loop = 0; loop < text.length(); loop++) {
if (text[loop] == '\n') {
this->lines++;
}
......
......@@ -43,8 +43,8 @@ Screen::Screen() {
this->flash = 0;
this->screen_snow = false;
this->bus_value = 255;
int height;
int width;
int height = 640;
int width = 480;
switch (ordenador->zaurus_mini) {
case 0:
......@@ -210,7 +210,7 @@ uint8_t Screen::get_bus_value(int tstates) {
* to execute last instruction */
void Screen::show_screen(int tstados) {
static uint8_t temporal, ink, paper, fflash, tmp2;
static uint8_t ink, paper, fflash, tmp2;
static int loop;
if ((procesador.I >= 0x40) && (procesador.I <= 0x7F)) {
......@@ -348,7 +348,6 @@ void Screen::show_screen(int tstados) {
void Screen::paint_pixels(uint8_t octet, uint8_t ink, uint8_t paper) {
static int bucle, valor;
static unsigned int *p;
static unsigned char mask;
if (((this->currpix >= (this->last_column))) || (this->currline < this->first_line) || (this->pixel >= this->max_pixel)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment