src/blitter/32bpp_base.cpp
changeset 7432 0a0cff8595dd
parent 6985 d50d59dca7c1
child 7638 5f374c09da52
equal deleted inserted replaced
7431:cac40a9365f3 7432:0a0cff8595dd
    54 		stepx = -1;
    54 		stepx = -1;
    55 	} else {
    55 	} else {
    56 		stepx = 1;
    56 		stepx = 1;
    57 	}
    57 	}
    58 
    58 
    59 	this->SetPixel(video, x, y, color);
    59 	if (x > 0 && y > 0 && x < screen_width && y < screen_height) this->SetPixel(video, x, y, color);
    60 	if (dx > dy) {
    60 	if (dx > dy) {
    61 		frac = dy - (dx / 2);
    61 		frac = dy - (dx / 2);
    62 		while (x != x2) {
    62 		while (x != x2) {
    63 			if (frac >= 0) {
    63 			if (frac >= 0) {
    64 				y += stepy;
    64 				y += stepy;